ConfigDependencyManager::sortGraphByWeight

protected static ConfigDependencyManager::sortGraphByWeight(array $a, array $b) Sorts the dependency graph by weight and alphabetically. Parameters array $a: First item for comparison. The compared items should be associative arrays that include a 'weight' and a 'name' key. array $b: Second item for comparison. Return value int The comparison result for uasort(). Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareM

ConfigDependencyManager::sortGraph

public static ConfigDependencyManager::sortGraph(array $a, array $b) Sorts the dependency graph by reverse weight and alphabetically. Parameters array $a: First item for comparison. The compared items should be associative arrays that include a 'weight' and a 'name' key. array $b: Second item for comparison. Return value int The comparison result for uasort(). Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Config\Entity\ConfigDependencyManager::prepareMult

ConfigDependencyManager::sortAll

public ConfigDependencyManager::sortAll() Sorts the dependencies in order of most dependent last. Return value array The list of entities in order of most dependent last, otherwise alphabetical. File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 212 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code public function sortAll() { $graph = $this->getGraph(); // Sort by weight

ConfigDependencyManager::setData

public ConfigDependencyManager::setData(array $data) Sets data to calculate dependencies for. The data is converted into lightweight ConfigEntityDependency objects. Parameters array $data: Configuration data keyed by configuration object name. Typically the output of \Drupal\Core\Config\StorageInterface::loadMultiple(). Return value $this File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 342 Class ConfigDependencyManager Provides a class to discover configuration

ConfigDependencyManager::prepareMultisort

protected ConfigDependencyManager::prepareMultisort($graph, $keys) Extracts data from the graph for use in array_multisort(). Parameters array $graph: The graph to extract data from. array $keys: The keys whose values to extract. Return value An array keyed by the $keys passed in. The values are arrays keyed by the row from the graph and the value is the corresponding value for the key from the graph. File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 195 Class Conf

ConfigDependencyManager::getGraph

protected ConfigDependencyManager::getGraph() Gets the dependency graph of all the config entities. Return value array The dependency graph of all the config entities. File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 305 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code protected function getGraph() { if (!isset($this->graph)) { $graph = array(); foreach ($this-&g

ConfigDependencyManager::getDependentEntities

public ConfigDependencyManager::getDependentEntities($type, $name) Gets dependencies. Parameters string $type: The type of dependency being checked. Either 'module', 'theme', 'config' or 'content'. string $name: The specific name to check. If $type equals 'module' or 'theme' then it should be a module name or theme name. In the case of entity it should be the full configuration object name. Return value \Drupal\Core\Config\Entity\ConfigEntityDependency[] An array of config entity dependency o

ConfigDependencyManager::createGraphConfigEntityDependencies

protected ConfigDependencyManager::createGraphConfigEntityDependencies($entities_to_check) Creates a graph of config entity dependencies. Parameters array $entities_to_check: The configuration entity full configuration names to determine the dependencies for. Return value \Drupal\Core\Config\Entity\ConfigEntityDependency[] A graph of config entity dependency objects that are dependent on the supplied entities to check. File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line

ConfigDependencyManager::$graph

The directed acyclic graph. Type: array File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 136 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code protected $graph;

ConfigDependencyManager::$data

The config entity data. Type: \Drupal\Core\Config\Entity\ConfigEntityDependency[] File core/lib/Drupal/Core/Config/Entity/ConfigDependencyManager.php, line 129 Class ConfigDependencyManager Provides a class to discover configuration entity dependencies. Namespace Drupal\Core\Config\Entity Code protected $data = array();