On this page
public function 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 188
Class
- ConfigDependencyManager
- Provides a class to discover configuration entity dependencies.
Namespace
Drupal\Core\Config\EntityCode
public function sortAll() {
$graph = $this->getGraph();
// Sort by weight and alphabetically. The most dependent entities
// are last and entities with the same weight are alphabetically ordered.
uasort($graph, array($this, 'sortGraphByWeight'));
// Use array_intersect_key() to exclude modules and themes from the list.
return array_keys(array_intersect_key($graph, $this->data));
}
© 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!Entity!ConfigDependencyManager.php/function/ConfigDependencyManager::sortAll/8.1.x