function olivero_preprocess_select

Same name in other branches
  1. 10 core/themes/olivero/olivero.theme \olivero_preprocess_select()
  2. 11.x core/themes/olivero/olivero.theme \olivero_preprocess_select()

Implements hook_preprocess_HOOK().

File

core/themes/olivero/olivero.theme, line 331

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';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.