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

Breadcrumb

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

function Event::stopPropagation

Same name in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/EventDispatcher/Event.php \Composer\EventDispatcher\Event::stopPropagation()

Stops the propagation of the event to further event listeners.

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().

4 calls to Event::stopPropagation()
MessageEvent::reject in vendor/symfony/mailer/Event/MessageEvent.php
PreOperationStageEvent::stopPropagation in core/modules/package_manager/src/Event/PreOperationStageEvent.php
Stops the propagation of the event to further event listeners.
PreOperationStageEvent::stopPropagation in core/modules/package_manager/src/Event/PreOperationStageEvent.php
Stops the propagation of the event to further event listeners.
RequestEvent::setResponse in vendor/symfony/http-kernel/Event/RequestEvent.php
Sets a response and stops event propagation.
1 method overrides Event::stopPropagation()
PreOperationStageEvent::stopPropagation in core/modules/package_manager/src/Event/PreOperationStageEvent.php
Stops the propagation of the event to further event listeners.

File

vendor/symfony/event-dispatcher-contracts/Event.php, line 47

Class

Event
Event is the base class for classes containing event data.

Namespace

Symfony\Contracts\EventDispatcher

Code

public function stopPropagation() : void {
    $this->propagationStopped = true;
}
RSS feed
Powered by Drupal