Commit fcad0813 authored by idebr's avatar idebr Committed by borisson_

Issue #2894147 by idebr: Allow themes to distinguish between facet links and summary links

parent 29abf2a2
......@@ -44,6 +44,7 @@ function facets_help($route_name, RouteMatchInterface $route_match) {
function facets_theme($existing, $type, $theme, $path) {
return [
'facets_result_item' => [
'base hook' => 'facets_result_item',
'variables' => [
'value' => '',
'show_count' => FALSE,
......
......@@ -150,7 +150,7 @@ class DefaultFacetsSummaryManager {
foreach ($results as $result) {
if ($result->isActive()) {
$item = [
'#theme' => 'facets_result_item',
'#theme' => 'facets_result_item__summary',
'#value' => $result->getDisplayValue(),
'#show_count' => $show_count,
'#count' => $result->getCount(),
......
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