Skip to content
Snippets Groups Projects
Commit 7ea8232e authored by Ben McClure's avatar Ben McClure Committed by Joris Vercammen
Browse files

Issue #2926339 by sylus, bmcclure: Facet summary clear filter custom class + order

parent 103bd0d3
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,11 @@ class DefaultFacetsSummaryManager {
'#raw_value' => $result->getRawValue(),
];
$item = (new Link($item, $result->getUrl()))->toRenderable();
$item['#wrapper_attributes'] = [
'class' => [
'facet-summary-item--facet',
],
];
$items[] = $item;
}
if ($children = $result->getChildren()) {
......
......@@ -59,6 +59,11 @@ class ResetFacetsProcessor extends ProcessorPluginBase implements BuildProcessor
$url->setOptions(['query' => $query_params]);
$item = (new Link($configuration['settings']['link_text'], $url))->toRenderable();
$item['#wrapper_attributes'] = [
'class' => [
'facet-summary-item--clear',
],
];
array_unshift($build['#items'], $item);
return $build;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment