Commit eddd2d00 authored by jefuri's avatar jefuri Committed by borisson_
Browse files

Issue #2841041 by markkes, jbertoen: List style is not set by context in the build of the facet

parent a2b38834
......@@ -58,6 +58,8 @@ abstract class WidgetPluginBase extends PluginBase implements WidgetPluginInterf
}
}, $facet->getResults());
$widget = $facet->getWidget();
return [
'#theme' => 'item_list',
'#items' => $items,
......@@ -65,6 +67,7 @@ abstract class WidgetPluginBase extends PluginBase implements WidgetPluginInterf
'data-drupal-facet-id' => $facet->id(),
'data-drupal-facet-alias' => $facet->getUrlAlias(),
],
'#context' => ['list_style' => $widget['type']],
'#cache' => [
'contexts' => [
'url.path',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment