You are here

public function WebhooksTestSubscriber::__construct in Webhooks 8

Constructs event subscriber.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\State\State $state: The object State.

File

tests/modules/webhooks_test/src/EventSubscriber/WebhooksTestSubscriber.php, line 39

Class

WebhooksTestSubscriber
Webhooks Test event subscriber.

Namespace

Drupal\webhooks_test\EventSubscriber

Code

public function __construct(MessengerInterface $messenger, State $state) {
  $this->messenger = $messenger;
  $this->state = $state;
}