core/lib/Drupal/Core/Entity/Entity.php | 7 +++++++ core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php index e582f0e..492a6aa 100644 --- a/core/lib/Drupal/Core/Entity/Entity.php +++ b/core/lib/Drupal/Core/Entity/Entity.php @@ -573,6 +573,13 @@ public function __sleep() { /** * {@inheritdoc} */ + public function getConfigDependencyKey() { + return $this->getEntityType()->getConfigDependencyKey(); + } + + /** + * {@inheritdoc} + */ public function getConfigDependencyName() { return $this->getEntityTypeId() . ':' . $this->bundle() . ':' . $this->uuid(); } diff --git a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php index e125d3b..60a9d16 100644 --- a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php +++ b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php @@ -42,7 +42,7 @@ public function testEntityDecoration() { // process. EntityInterface::getConfigDependencyName() and // ConfigEntityInterface::calculateDependencies() are only used for // dependency management. - if (!in_array($reflection_method->getName(), ['isNew', 'isSyncing', 'isUninstalling', 'getConfigDependencyName', 'calculateDependencies'])) { + if (!in_array($reflection_method->getName(), ['isNew', 'isSyncing', 'isUninstalling', 'getConfigDependencyKey', 'getConfigDependencyName', 'calculateDependencies'])) { if (count($reflection_method->getParameters()) == 0) { $method_args[$reflection_method->getName()] = array(); }