You are here

function olivero_theme_suggestions_form_alter in Drupal 9

Implements hook_theme_suggestions_HOOK_alter() for form templates.

File

core/themes/olivero/olivero.theme, line 180
Functions to support theming in the Olivero theme.

Code

function olivero_theme_suggestions_form_alter(array &$suggestions, array $variables) {
  if ($variables['element']['#form_id'] === 'search_block_form') {
    $suggestions[] = 'form__search_block_form';
  }
}