You are here

class TestEventListener in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventListener

Hierarchy

Expanded class hierarchy of TestEventListener

1 file declares its use of TestEventListener
ContainerAwareEventDispatcherTest.php in core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php
Contains \Drupal\Tests\Component\EventDispatcher\ContainerAwareEventDispatcherTest.

File

vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php, line 322

Namespace

Symfony\Component\EventDispatcher\Tests
View source
class TestEventListener {
  public $preFooInvoked = false;
  public $postFooInvoked = false;

  /* Listener methods */
  public function preFoo(Event $e) {
    $this->preFooInvoked = true;
  }
  public function postFoo(Event $e) {
    $this->postFooInvoked = true;
    $e
      ->stopPropagation();
  }

}

Members