diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php index 648a646..a235582 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php @@ -136,19 +136,16 @@ class ConfigDependencyManager { protected $graph; /** - * Given a configuration name and type, returns a graph of its dependencies. + * Return config entity ancestors, ordered from the immediate parent upwards. + * + * Given a configuration name and type, returns a list of + * ConfigEntityDependency objects in the order of the nearest to the entity + * passed in. For example, if passed ('module', 'node'), this function will + * return [node_type, field_storage, field, entity view displays, ...]. * - * If the given entity is a configuration entity, this function simply calls - * $this->createGraphConfigEntityDependencies() on it. - * - * If given entity is a module, theme or content entity, this function looks - * through this configDependencyManager's configuration entities and calls - * $this->createGraphConfigEntityDependencies() on each of them. - * * If the given entity isn't a configuration, module, theme or content entity * then this function returns just an empty array. * - * * @param string $type * The type of dependency being checked. Either 'module', 'theme', 'config' * or 'content'; anything else will return an empty array. @@ -158,8 +155,10 @@ class ConfigDependencyManager { * should be the full configuration object name. * * @return \Drupal\Core\Config\Entity\ConfigEntityDependency[] - * An array of forward and reverse config entity dependency objects in a - * graph. + * An array of configuration entities which depend on the given entity, + * ordered from the immediate parent up the dependency graph. + * + * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() */ public function getDependentEntities($type, $name) { $dependent_entities = array();