function panopoly_search_theme_suggestions_block in Panopoly Search 8.2
Implements hook_theme_suggestions_HOOK().
File
- ./
panopoly_search.module, line 38 - Hooks for the panopoly_search module.
Code
function panopoly_search_theme_suggestions_block(array $variables) {
$suggestions = [];
// Use the same template suggestions as the Drupal core search block.
// This applies the default styling in Bartik, and may work for other
// themes that have custom styled the search form.
$plugin_id = $variables['elements']['#plugin_id'];
if ($plugin_id === 'panopoly_search_box') {
$suggestions[] = 'block__search_form_block';
}
return $suggestions;
}