function claro_preprocess_filter_guidelines in Drupal 8
Same name and namespace in other branches
- 9 core/themes/claro/claro.theme \claro_preprocess_filter_guidelines()
Implements template_preprocess_filter_guidelines().
File
- core/
themes/ claro/ claro.theme, line 270 - Functions to support theming in the Claro theme.
Code
function claro_preprocess_filter_guidelines(&$variables) {
// Fix filter guidelines selector issue of 'filter/drupal.filter'.
// @todo Remove when https://www.drupal.org/node/2881212 is fixed.
$variables['attributes']['class'][] = 'filter-guidelines-item';
$variables['attributes']['class'][] = 'filter-guidelines-' . $variables['format']
->id();
}