diff --git a/core/lib/Drupal/Core/Entity/EntityManager.php b/core/lib/Drupal/Core/Entity/EntityManager.php index 87dd552..d1ceaec 100644 --- a/core/lib/Drupal/Core/Entity/EntityManager.php +++ b/core/lib/Drupal/Core/Entity/EntityManager.php @@ -1082,7 +1082,7 @@ public function onBundleCreate($bundle, $entity_type_id) { $this->clearCachedBundles(); // Notify the entity storage. $storage = $this->getStorage($entity_type_id); - if ($storage instanceof DynamicallyFieldableEntityStorageInterface) { + if ($storage instanceof EntityBundleListenerInterface) { $storage->onBundleCreate($bundle, $entity_type_id); } // Invoke hook_entity_bundle_create() hook. @@ -1096,7 +1096,7 @@ public function onBundleRename($bundle_old, $bundle_new, $entity_type_id) { $this->clearCachedBundles(); // Notify the entity storage. $storage = $this->getStorage($entity_type_id); - if ($storage instanceof DynamicallyFieldableEntityStorageInterface) { + if ($storage instanceof EntityBundleListenerInterface) { $storage->onBundleRename($bundle_old, $bundle_new, $entity_type_id); } @@ -1121,7 +1121,7 @@ public function onBundleDelete($bundle, $entity_type_id) { $this->clearCachedBundles(); // Notify the entity storage. $storage = $this->getStorage($entity_type_id); - if ($storage instanceof DynamicallyFieldableEntityStorageInterface) { + if ($storage instanceof EntityBundleListenerInterface) { $storage->onBundleDelete($bundle, $entity_type_id); } // Invoke hook_entity_bundle_delete() hook.