function SearchThemeHooks::themeSuggestionsSearchResult

Implements hook_theme_suggestions_HOOK().

Attributes

#[Hook('theme_suggestions_search_result')]

File

core/modules/search/src/Hook/SearchThemeHooks.php, line 15

Class

SearchThemeHooks
Hook implementations for search.

Namespace

Drupal\search\Hook

Code

public function themeSuggestionsSearchResult(array $variables) : array {
  return [
    'search_result__' . $variables['plugin_id'],
  ];
}

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