diff --git a/core/modules/search/lib/Drupal/search/Controller/SearchController.php b/core/modules/search/lib/Drupal/search/Controller/SearchController.php index 402ad53..32a5c54 100644 --- a/core/modules/search/lib/Drupal/search/Controller/SearchController.php +++ b/core/modules/search/lib/Drupal/search/Controller/SearchController.php @@ -94,7 +94,7 @@ public function view(Request $request, SearchPageInterface $entity, $keys = '') ); $build['search_results'] = array( - '#theme' => 'item_list', + '#theme' => array('item_list__search_results__' . $plugin->getPluginId(), 'item_list__search_results'), '#items' => $results, '#empty' => array( // @todo Revisit where this help text is added. @@ -105,8 +105,8 @@ public function view(Request $request, SearchPageInterface $entity, $keys = '') 'class' => array( 'search-results', $plugin->getPluginId() . '_search-results', - ) - ) + ), + ), ); $build['pager'] = array( diff --git a/core/modules/search/templates/search-result.html.twig b/core/modules/search/templates/search-result.html.twig index bb27d19..732489b 100644 --- a/core/modules/search/templates/search-result.html.twig +++ b/core/modules/search/templates/search-result.html.twig @@ -4,7 +4,7 @@ * Default theme implementation for displaying a single search result. * * This template renders a single search result. The list of results is - * rendered using theme('item_list'), with suggestions of: + * rendered using '#theme' => 'item_list', with suggestions of: * - item_list__search_results__(plugin_id) * - item_list__search_results *