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

Breadcrumb

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

function ImmutableEventDispatcher::dispatch

Overrides EventDispatcherInterface::dispatch

File

vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php, line 26

Class

ImmutableEventDispatcher
A read-only proxy for an event dispatcher.

Namespace

Symfony\Component\EventDispatcher

Code

public function dispatch(object $event, ?string $eventName = null) : object {
    return $this->dispatcher
        ->dispatch($event, $eventName);
}

API Navigation

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