function olivero_theme_suggestions_form_alter

Same name in other branches
  1. 10 core/themes/olivero/olivero.theme \olivero_theme_suggestions_form_alter()
  2. 11.x core/themes/olivero/olivero.theme \olivero_theme_suggestions_form_alter()

Implements hook_theme_suggestions_HOOK_alter() for form templates.

File

core/themes/olivero/olivero.theme, line 180

Code

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

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