function claro_theme_suggestions_form_element_alter
Same name in other branches
- 9 core/themes/claro/claro.theme \claro_theme_suggestions_form_element_alter()
- 8.9.x core/themes/claro/claro.theme \claro_theme_suggestions_form_element_alter()
- 11.x 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.