You are here

public function WorkflowTransitionEventSubscriber::__construct in State Machine 8

Constructs a new WorkflowTransitionEventSubscriber object.

Parameters

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

File

tests/modules/state_machine_test/src/EventSubscriber/WorkflowTransitionEventSubscriber.php, line 25

Class

WorkflowTransitionEventSubscriber

Namespace

Drupal\state_machine_test\EventSubscriber

Code

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