You are here

function olivero_preprocess_form_element_label in Drupal 10

Same name and namespace in other branches
  1. 9 core/themes/olivero/olivero.theme \olivero_preprocess_form_element_label()

Implements hook_preprocess_HOOK().

File

core/themes/olivero/olivero.theme, line 272
Functions to support theming in the Olivero theme.

Code

function olivero_preprocess_form_element_label(&$variables) {
  $variables['attributes']['class'][] = 'form-item__label';
}