function OliveroHooks::preprocessFormElementLabel
Same name and namespace in other branches
- 11.x core/themes/olivero/src/Hook/OliveroHooks.php \Drupal\olivero\Hook\OliveroHooks::preprocessFormElementLabel()
Implements hook_preprocess_HOOK() for form-element-label.
Attributes
#[Hook('preprocess_form_element_label')]
File
-
core/
themes/ olivero/ src/ Hook/ OliveroHooks.php, line 241
Class
- OliveroHooks
- Hook implementations for olivero.
Namespace
Drupal\olivero\HookCode
public function preprocessFormElementLabel(&$variables) : void {
$variables['attributes']['class'][] = 'form-item__label';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.