core/modules/views/src/Plugin/views/argument_validator/Entity.php | 2 +- core/modules/views/src/Plugin/views/filter/Bundle.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/views/src/Plugin/views/argument_validator/Entity.php b/core/modules/views/src/Plugin/views/argument_validator/Entity.php index b84a2ce..c473267 100644 --- a/core/modules/views/src/Plugin/views/argument_validator/Entity.php +++ b/core/modules/views/src/Plugin/views/argument_validator/Entity.php @@ -224,7 +224,7 @@ public function calculateDependencies() { foreach (array_keys($this->options['bundles']) as $bundle) { $bundle_entity = $bundle_entity_storage->load($bundle); - $key = $bundle_entity instanceof ConfigEntityInterface ? 'config' : 'content'; + $key = $bundle_entity->getEntityType()->getConfigDependencyKey(); $dependencies[$key][] = $bundle_entity->getConfigDependencyName(); } diff --git a/core/modules/views/src/Plugin/views/filter/Bundle.php b/core/modules/views/src/Plugin/views/filter/Bundle.php index a2a6514..6e96568 100644 --- a/core/modules/views/src/Plugin/views/filter/Bundle.php +++ b/core/modules/views/src/Plugin/views/filter/Bundle.php @@ -85,7 +85,7 @@ public function calculateDependencies() { foreach (array_keys($this->value) as $bundle) { $bundle_entity = $bundle_entity_storage->load($bundle); - $key = $bundle_entity instanceof ConfigEntityInterface ? 'config' : 'content'; + $key = $bundle_entity->getEntityType()->getConfigDependencyKey(); $dependencies[$key][] = $bundle_entity->getConfigDependencyName(); }