function MessageEventTestSubscriber::__construct
Same name and namespace in other branches
- 11.x core/modules/mailer/tests/modules/mailer_event_subscriber_test/src/EventSubscriber/MessageEventTestSubscriber.php \Drupal\mailer_event_subscriber_test\EventSubscriber\MessageEventTestSubscriber::__construct()
Constructs a new message event test subscriber.
Parameters
\Drupal\Core\State\StateInterface $state: The state service.
File
-
core/
modules/ mailer/ tests/ modules/ mailer_event_subscriber_test/ src/ EventSubscriber/ MessageEventTestSubscriber.php, line 24
Class
- MessageEventTestSubscriber
- A message event test subscriber.
Namespace
Drupal\mailer_event_subscriber_test\EventSubscriberCode
public function __construct(protected StateInterface $state) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.