8.3.x bartik.theme bartik_theme_suggestions_form_alter(array &$suggestions, array $variables)
8.0.x bartik.theme bartik_theme_suggestions_form_alter(array &$suggestions, array $variables)
8.1.x bartik.theme bartik_theme_suggestions_form_alter(array &$suggestions, array $variables)
8.2.x bartik.theme bartik_theme_suggestions_form_alter(array &$suggestions, array $variables)
8.4.x bartik.theme bartik_theme_suggestions_form_alter(array &$suggestions, array $variables)

Implements hook_theme_suggestions_HOOK_alter() for form templates.

File

core/themes/bartik/bartik.theme, line 108
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';
  }
}