You are here

function olivero_preprocess_select in Drupal 10

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

Implements hook_preprocess_HOOK().

File

core/themes/olivero/olivero.theme, line 337
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';
}