protected function AuditLogLogger::sortEventSubscribers in Audit Log 8
Same name and namespace in other branches
- 8.2 src/AuditLogLogger.php \Drupal\audit_log\AuditLogLogger::sortEventSubscribers()
Sorts the available event subscribers by priority.
Return value
array The sorted array of event subscribers.
1 call to AuditLogLogger::sortEventSubscribers()
- AuditLogLogger::log in src/
AuditLogLogger.php - Logs an event to the audit log.
File
- src/
AuditLogLogger.php, line 69
Class
- AuditLogLogger
- Service for responding to audit log events.
Namespace
Drupal\audit_logCode
protected function sortEventSubscribers() {
$sorted = [];
krsort($this->entityEventEventSubscribers);
foreach ($this->entityEventEventSubscribers as $entity_event_event_subscribers) {
$sorted = array_merge($sorted, $entity_event_event_subscribers);
}
return $sorted;
}