Commit 364673e0 authored by voleger's avatar voleger Committed by borisson_

Issue #2986243 by voleger: Fix Facets Summary Block Deriver definitions getter

parent a67c633b
......@@ -51,8 +51,8 @@ class FacetsSummaryBlockDeriver implements ContainerDeriverInterface {
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$base_plugin_id = $base_plugin_definition['id'];
$plugin_derivatives = [];
if (!isset($this->derivatives[$base_plugin_id])) {
$plugin_derivatives = [];
/** @var \Drupal\facets_summary\FacetsSummaryInterface[] $all_facets_summaries */
$all_facets_summaries = $this->facetsSummaryStorage->loadMultiple();
foreach ($all_facets_summaries as $facets_summary) {
......@@ -65,8 +65,8 @@ class FacetsSummaryBlockDeriver implements ContainerDeriverInterface {
'description' => $this->t('Facets Summary'),
] + $base_plugin_definition;
}
$this->derivatives[$base_plugin_id] = $plugin_derivatives;
}
$this->derivatives[$base_plugin_id] = $plugin_derivatives;
return $this->derivatives[$base_plugin_id];
}
......
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