Commit 87345175 authored by mpp's avatar mpp Committed by borisson_

Issue #3002580 by JacobSanford, mpp: Slider facets do not display titles

parent e61f8fad
......@@ -36,6 +36,8 @@ class SliderWidget extends WidgetPluginBase {
* {@inheritdoc}
*/
public function build(FacetInterface $facet) {
$build = parent::build($facet);
$results = $facet->getResults();
ksort($results);
......@@ -53,14 +55,14 @@ class SliderWidget extends WidgetPluginBase {
$min = (float) reset($results)->getRawValue();
$max = (float) end($results)->getRawValue();
$build['slider'] = [
$build['#items'] = [[
'#type' => 'html_tag',
'#tag' => 'div',
'#attributes' => [
'class' => ['facet-slider'],
'id' => $facet->id(),
],
];
]];
$active = $facet->getActiveItems();
......
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