diff --git a/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php b/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php index e2ae59d..b77d3a2 100644 --- a/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php +++ b/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php @@ -59,7 +59,7 @@ public function defaultConfiguration(); * @endcode * * @see \Drupal\Core\Config\Entity\ConfigDependencyManager - * @see \Drupal\Core\Config\Entity\ConfigEntityInterface::getConfigDependencyName() + * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() */ public function calculateDependencies(); diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php index 680a3da..9ca55b6 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityDependency.php @@ -91,7 +91,7 @@ public function hasDependency($type, $name) { /** * Gets the configuration entity's configuration dependency name. * - * @see Drupal\Core\Config\Entity\ConfigEntityInterface::getConfigDependencyName() + * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return string * The configuration dependency name for the entity. diff --git a/core/lib/Drupal/Core/Entity/DependencyTrait.php b/core/lib/Drupal/Core/Entity/DependencyTrait.php index 5815ab1..8dac895 100644 --- a/core/lib/Drupal/Core/Entity/DependencyTrait.php +++ b/core/lib/Drupal/Core/Entity/DependencyTrait.php @@ -28,7 +28,7 @@ * If $type is 'module' or 'theme', the name of the module or theme. If * $type is 'entity', the full configuration object name. * - * @see \Drupal\Core\Config\Entity\ConfigEntityInterface::getConfigDependencyName() + * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() * * @return $this */ diff --git a/core/lib/Drupal/Core/Entity/EntityInterface.php b/core/lib/Drupal/Core/Entity/EntityInterface.php index 98e258e..674078d 100644 --- a/core/lib/Drupal/Core/Entity/EntityInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityInterface.php @@ -407,6 +407,10 @@ public function getCacheTags(); /** * Gets the configuration dependency name. * + * Configuration entities can depend on content and configuration entities. + * They store an array of content and config dependency names in their + * "dependencies" key. + * * @return string * The configuration dependency name. * diff --git a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php index c31306a..e125d3b 100644 --- a/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php +++ b/core/modules/views_ui/tests/src/Unit/ViewUIObjectTest.php @@ -39,7 +39,7 @@ public function testEntityDecoration() { // calls id(), which breaks the ->expect($this->once()) call. Call it later. // EntityInterface::isSyncing() is only called during syncing process. // EntityInterface::isUninstalling() is only called during uninstallation - // process. ConfigEntityInterface::getConfigDependencyName() and + // process. EntityInterface::getConfigDependencyName() and // ConfigEntityInterface::calculateDependencies() are only used for // dependency management. if (!in_array($reflection_method->getName(), ['isNew', 'isSyncing', 'isUninstalling', 'getConfigDependencyName', 'calculateDependencies'])) {