You are here

public function WorkflowTransitionEventSubscriber::onPreTransition in State Machine 8

Reacts to the 'entity_test_with_bundle.create.pre_transition' event.

Parameters

\Drupal\state_machine\Event\WorkflowTransitionEvent $event: The transition event.

File

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

Class

WorkflowTransitionEventSubscriber

Namespace

Drupal\state_machine_test\EventSubscriber

Code

public function onPreTransition(WorkflowTransitionEvent $event) {
  $this
    ->setMessage($event, 'pre-transition');
}