public ConfigManager::findConfigEntityDependents($type, array $names, ConfigDependencyManager $dependency_manager = NULL)
Finds config entities that are dependent on extensions or entities.
string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'.
array $names: The specific names to check. If $type equals 'module' or 'theme' then it should be a list of module names or theme names. In the case of 'config' or 'content' it should be a list of configuration dependency names.
\Drupal\Core\Config\Entity\ConfigEntityDependency[] An array of configuration entity dependency objects.
Overrides ConfigManagerInterface::findConfigEntityDependents
public function findConfigEntityDependents($type, array $names, ConfigDependencyManager $dependency_manager = NULL) { if (!$dependency_manager) { $dependency_manager = $this->getConfigDependencyManager(); } $dependencies = array(); foreach ($names as $name) { $dependencies = array_merge($dependencies, $dependency_manager->getDependentEntities($type, $name)); } return $dependencies; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigManager.php/function/ConfigManager::findConfigEntityDependents/8.1.x