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
Namespace
Drupal\state_machine_test\EventSubscriberCode
public function onPostTransition(WorkflowTransitionEvent $event) {
$this
->setMessage($event, 'post-transition');
}