diff -u b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php --- b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php @@ -141,14 +141,14 @@ * 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, ...]. + * return [node_type, field_storage, field, entity view displays]. * * 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. + * The type of dependency being checked. Either 'module', 'theme', 'config'. + * * @param string $name * The specific configuration name to check. If $type equals 'module' or * 'theme' then it should be a module name or theme name. Otherwise it @@ -157,6 +157,7 @@ * @return \Drupal\Core\Config\Entity\ConfigEntityDependency[] * An array of configuration entities which depend on the given entity, * ordered from the immediate parent up the dependency graph. + * If nothing is dependent it'll be empty. * * @see \Drupal\Core\Entity\EntityInterface::getConfigDependencyName() */