class TestEventListener in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\TestEventListener
Hierarchy
- class \Symfony\Component\EventDispatcher\Tests\TestEventListener
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\TestsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestEventListener:: |
public | property | ||
TestEventListener:: |
public | property | ||
TestEventListener:: |
public | function | ||
TestEventListener:: |
public | function |