function PathProcessorManager::sortProcessors
Same name in other branches
- 8.9.x core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::sortProcessors()
- 10 core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::sortProcessors()
- 11.x core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php \Drupal\Core\PathProcessor\PathProcessorManager::sortProcessors()
Sorts the processors according to priority.
Parameters
string $type: The processor type to sort, e.g. 'inboundProcessors'.
2 calls to PathProcessorManager::sortProcessors()
- PathProcessorManager::getInbound in core/
lib/ Drupal/ Core/ PathProcessor/ PathProcessorManager.php - Returns the sorted array of inbound processors.
- PathProcessorManager::getOutbound in core/
lib/ Drupal/ Core/ PathProcessor/ PathProcessorManager.php - Returns the sorted array of outbound processors.
File
-
core/
lib/ Drupal/ Core/ PathProcessor/ PathProcessorManager.php, line 133
Class
- PathProcessorManager
- Path processor manager.
Namespace
Drupal\Core\PathProcessorCode
protected function sortProcessors($type) {
krsort($this->{$type});
return array_merge([], ...$this->{$type});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.