function claro_theme_suggestions_form_element_alter

Same name and namespace in other branches
  1. 9 core/themes/claro/claro.theme \claro_theme_suggestions_form_element_alter()
  2. 8.9.x core/themes/claro/claro.theme \claro_theme_suggestions_form_element_alter()
  3. 10 core/themes/claro/claro.theme \claro_theme_suggestions_form_element_alter()

Implements hook_theme_suggestions_HOOK_alter() for form_element.

File

core/themes/claro/claro.theme, line 27

Code

function claro_theme_suggestions_form_element_alter(&$suggestions, $variables) {
    if (!empty($variables['element']['#type'])) {
        $suggestions[] = 'form_element__' . $variables['element']['#type'];
    }
}

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