You are here

function olivero_preprocess_select in Drupal 9

Implements hook_preprocess_HOOK().

File

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

Code

function olivero_preprocess_select(&$variables) {
  $variables['attributes']['class'][] = 'form-element';
  $variables['attributes']['class'][] = $variables['element']['#multiple'] ? 'form-element--type-select-multiple' : 'form-element--type-select';
}