diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php index 0ed5162..e5a9264 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -353,8 +353,9 @@ public function preSave(EntityStorageInterface $storage) { */ public function calculateDependencies() { // All dependencies should be recalculated on every save apart from enforced - // dependencies. This ensures stale dependencies are never saved. - $this->dependencies = array_intersect_key($this->dependencies, ['enforced' => '']); + // and content dependencies. Content dependencies are special... @todo + // This ensures stale dependencies are never saved. + $this->dependencies = array_intersect_key($this->dependencies, ['enforced' => '', 'content' => '']); if ($this instanceof EntityWithPluginCollectionInterface) { // Configuration entities need to depend on the providers of any plugins // that they store the configuration for.