function ConfigManager::findConfigEntityDependencies

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigManager.php \Drupal\Core\Config\ConfigManager::findConfigEntityDependencies()
  2. 11.x core/lib/Drupal/Core/Config/ConfigManager.php \Drupal\Core\Config\ConfigManager::findConfigEntityDependencies()
1 call to ConfigManager::findConfigEntityDependencies()
ConfigManager::findConfigEntityDependenciesAsEntities in core/lib/Drupal/Core/Config/ConfigManager.php

File

core/lib/Drupal/Core/Config/ConfigManager.php, line 269

Class

ConfigManager
The ConfigManager provides helper functions for the configuration system.

Namespace

Drupal\Core\Config

Code

public function findConfigEntityDependencies($type, array $names, ?ConfigDependencyManager $dependency_manager = NULL) {
    if (!$dependency_manager) {
        $dependency_manager = $this->getConfigDependencyManager();
    }
    $dependencies = [];
    foreach ($names as $name) {
        $dependencies[] = $dependency_manager->getDependentEntities($type, $name);
    }
    return array_merge(...$dependencies);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.