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

Breadcrumb

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

function EventDataCollector::setOrphanedEvents

Parameters

array $events An array of orphaned events:

See also

TraceableEventDispatcher

1 call to EventDataCollector::setOrphanedEvents()
EventDataCollector::lateCollect in vendor/symfony/http-kernel/DataCollector/EventDataCollector.php
Collects data as late as possible.

File

vendor/symfony/http-kernel/DataCollector/EventDataCollector.php, line 123

Class

EventDataCollector
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function setOrphanedEvents(array $events, ?string $dispatcher = null) : void {
    $this->data[$dispatcher ?? $this->defaultDispatcher]['orphaned_events'] = $events;
}

API Navigation

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