function claro_preprocess_filter_guidelines
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
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.