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

Breadcrumb

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

function EventDispatcher::executeEventPhpScript

Parameters

Event $event Event invoking the PHP callable:

Return value

mixed

1 call to EventDispatcher::executeEventPhpScript()
EventDispatcher::doDispatch in vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php
Triggers the listeners of an event.

File

vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php, line 483

Class

EventDispatcher
The Event Dispatcher.

Namespace

Composer\EventDispatcher

Code

protected function executeEventPhpScript(string $className, string $methodName, Event $event) {
    if ($this->io
        ->isVerbose()) {
        $this->io
            ->writeError(sprintf('> %s: %s::%s', $event->getName(), $className, $methodName));
    }
    else {
        $this->io
            ->writeError(sprintf('> %s::%s', $className, $methodName));
    }
    return $className::$methodName($event);
}

API Navigation

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