Commit 6904e340 authored by Novitsh's avatar Novitsh Committed by borisson_
Browse files

Issue #2661724 by Novitsh: Facet block not immediately visible in 'blocks' after creation

parent 1b0ecf3b
...@@ -346,6 +346,9 @@ class FacetForm extends EntityForm { ...@@ -346,6 +346,9 @@ class FacetForm extends EntityForm {
$form_state->setRedirect('entity.facets_facet.edit_form', ['facets_facet' => $facet->id()]); $form_state->setRedirect('entity.facets_facet.edit_form', ['facets_facet' => $facet->id()]);
} }
// Clear Drupal cache for blocks to reflect recent changes.
\Drupal::service('plugin.manager.block')->clearCachedDefinitions();
return $facet; return $facet;
} }
......
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