Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceableEventDispatcher.php

function TraceableEventDispatcher::getOrphanedEvents

File

vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php, line 199

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\EventDispatcher\Debug

Code

public function getOrphanedEvents(?Request $request = null) : array {
    if ($request) {
        return $this->orphanedEvents[spl_object_hash($request)] ?? [];
    }
    if (!$this->orphanedEvents) {
        return [];
    }
    return array_merge(...array_values($this->orphanedEvents));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal