private function EventDispatcher::sortListeners

Sorts the internal list of listeners for the given event by priority.

Parameters

string $eventName The name of the event.:

1 call to EventDispatcher::sortListeners()
EventDispatcher::getListeners in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php, line 176

Class

EventDispatcher
The EventDispatcherInterface is the central point of Symfony's event listener system.

Namespace

Symfony\Component\EventDispatcher

Code

private function sortListeners($eventName) {
  $this->sorted[$eventName] = array();
  if (isset($this->listeners[$eventName])) {
    krsort($this->listeners[$eventName]);
    $this->sorted[$eventName] = call_user_func_array('array_merge', $this->listeners[$eventName]);
  }
}