function olivero_preprocess_filter_caption

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

Implements hook_preprocess_HOOK() for setting classes.

File

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

Code

function olivero_preprocess_filter_caption(&$variables) {
    $variables['classes'] = isset($variables['classes']) && !empty($variables['classes']) ? $variables['classes'] . ' caption' : 'caption';
}

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