class TestEventListener

Hierarchy

Expanded class hierarchy of TestEventListener

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php, line 272

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