function search_theme

Same name in other branches
  1. 7.x modules/search/search.module \search_theme()
  2. 9 core/modules/search/search.module \search_theme()
  3. 8.9.x core/modules/search/search.module \search_theme()
  4. 10 core/modules/search/search.module \search_theme()

Implements hook_theme().

File

core/modules/search/search.module, line 46

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.