Commit 10cc1605 authored by Wim Leers's avatar Wim Leers Committed by phenaproxima

Issue #2828608 by Wim Leers: Embed button form lists cached...

Issue #2828608 by Wim Leers: Embed button form lists cached @EntityEmbedDisplay plugin definitions; view mode-based ones need to be invalidated
parent 1c059d9d
......@@ -32,7 +32,8 @@ class EntityEmbedDisplayManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/entity_embed/EntityEmbedDisplay', $namespaces, $module_handler, 'Drupal\entity_embed\EntityEmbedDisplay\EntityEmbedDisplayInterface', 'Drupal\entity_embed\Annotation\EntityEmbedDisplay');
$this->alterInfo('entity_embed_display_plugins');
$this->setCacheBackend($cache_backend, 'entity_embed_display_plugins');
// @todo Move the cache tag to the derivers once https://www.drupal.org/node/3001284 lands.
$this->setCacheBackend($cache_backend, 'entity_embed_display_plugins', ['config:entity_view_mode_list']);
}
/**
......
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