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
- ConfigDependencyManager
- Provides a class to discover configuration entity dependencies.
Namespace
Drupal\Core\Config\Entity
Code
protected function prepareMultisort($graph, $keys) { $return = array_fill_keys($keys, []); foreach ($graph as $graph_key => $graph_row) { foreach ($keys as $key) { $return[$key][$graph_key] = $graph_row[$key]; } } return $return; }
Please login to continue.