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

Breadcrumb

  1. Drupal Core 11.1.x

EventDispatcherInterface.php

Same filename in this branch
  1. 11.1.x vendor/symfony/event-dispatcher-contracts/EventDispatcherInterface.php
  2. 11.1.x vendor/symfony/event-dispatcher/EventDispatcherInterface.php

Namespace

Psr\EventDispatcher

File

vendor/psr/event-dispatcher/src/EventDispatcherInterface.php

View source
<?php

declare (strict_types=1);
namespace Psr\EventDispatcher;


/**
 * Defines a dispatcher for events.
 */
interface EventDispatcherInterface {
    
    /**
     * Provide all relevant listeners with an event to process.
     *
     * @param object $event
     *   The object to process.
     *
     * @return object
     *   The Event that was passed, now modified by listeners.
     */
    public function dispatch(object $event);

}

Interfaces

Title Deprecated Summary
EventDispatcherInterface Defines a dispatcher for events.

API Navigation

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