Commit 451abbdf authored by git's avatar git Committed by borisson_

Issue #2881449 by Tom M Fallon: Invalid id markup

parent 7a10472a
......@@ -171,7 +171,7 @@ abstract class WidgetPluginBase extends PluginBase implements WidgetPluginInterf
}
$items['#wrapper_attributes'] = ['class' => $classes];
$items['#attributes']['data-drupal-facet-item-id'] = $this->facet->getUrlAlias() . '-' . $result->getRawValue();
$items['#attributes']['data-drupal-facet-item-id'] = $this->facet->getUrlAlias() . '-' . str_replace(' ', '-', $result->getRawValue());
$items['#attributes']['data-drupal-facet-item-value'] = $result->getRawValue();
return $items;
}
......
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