Commit 7ea8232e authored by bmcclure's avatar bmcclure Committed by borisson_

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

parent 103bd0d3
......@@ -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;
}
......
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