function SearchThemeHooks::theme
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ search/ src/ Hook/ SearchThemeHooks.php, line 24
Class
- SearchThemeHooks
- Theme hook implementations for search.
Namespace
Drupal\search\HookCode
public function theme() : array {
return [
'search_result' => [
'variables' => [
'result' => NULL,
'plugin_id' => NULL,
],
'initial preprocess' => static::class . ':preprocessSearchResult',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.