2 * Prepares variables for views-style-{{ plugin_id|u2h }}.html.twig template.
4 function template_preprocess_views_style_{{ plugin_id }}(&$variables) {
5 $handler = $variables['view']->style_plugin;
7 // Fetch wrapper classes from handler options.
8 if ($handler->options['wrapper_class']) {
9 $wrapper_class = explode(' ', $handler->options['wrapper_class']);
10 $variables['attributes']['class'] = array_map('\Drupal\Component\Utility\Html::cleanCssIdentifier', $wrapper_class);
13 template_preprocess_views_view_unformatted($variables);