function TestEventListener::postFoo

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventListener::postFoo()
  2. 8.9.x core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php \Drupal\Tests\Component\EventDispatcher\TestEventListener::postFoo()

File

core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php, line 608

Class

TestEventListener

Namespace

Drupal\Tests\Component\EventDispatcher

Code

public function postFoo(Event $e) {
  $this->postFooInvoked = TRUE;
  $e->stopPropagation();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.