You are here

public function WorkflowTransitionEventSubscriber::onPostTransition in State Machine 8

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

Parameters

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

File

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

Class

WorkflowTransitionEventSubscriber

Namespace

Drupal\state_machine_test\EventSubscriber

Code

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