You are here

function bartik_theme_suggestions_form_alter in Drupal 9

Same name and namespace in other branches
  1. 8 core/themes/bartik/bartik.theme \bartik_theme_suggestions_form_alter()
  2. 10 core/themes/bartik/bartik.theme \bartik_theme_suggestions_form_alter()

Implements hook_theme_suggestions_HOOK_alter() for form templates.

File

core/themes/bartik/bartik.theme, line 110
Functions to support theming in the Bartik theme.

Code

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