You are here

function search_theme in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/search.module \search_theme()
  2. 6 modules/search/search.module \search_theme()
  3. 7 modules/search/search.module \search_theme()
  4. 9 core/modules/search/search.module \search_theme()

Implements hook_theme().

File

core/modules/search/search.module, line 45
Enables site-wide keyword searching.

Code

function search_theme() {
  return [
    'search_result' => [
      'variables' => [
        'result' => NULL,
        'plugin_id' => NULL,
      ],
      'file' => 'search.pages.inc',
    ],
  ];
}