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

Breadcrumb

  1. Drupal Core 11.1.x

ListenerProviderInterface.php

Namespace

Psr\EventDispatcher

File

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

View source
<?php

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


/**
 * Mapper from an event to the listeners that are applicable to that event.
 */
interface ListenerProviderInterface {
    
    /**
     * @param object $event
     *   An event for which to return the relevant listeners.
     * @return iterable[callable]
     *   An iterable (array, iterator, or generator) of callables.  Each
     *   callable MUST be type-compatible with $event.
     */
    public function getListenersForEvent(object $event) : iterable;

}

Interfaces

Title Deprecated Summary
ListenerProviderInterface Mapper from an event to the listeners that are applicable to that event.
RSS feed
Powered by Drupal