public function WorkflowTransitionEventSubscriber::onGenericPostTransition in State Machine 8
Reacts to the 'state_machine.post_transition' event.
Parameters
\Drupal\state_machine\Event\WorkflowTransitionEvent $event: The transition event.
File
- tests/
modules/ state_machine_test/ src/ EventSubscriber/ WorkflowTransitionEventSubscriber.php, line 100
Class
Namespace
Drupal\state_machine_test\EventSubscriberCode
public function onGenericPostTransition(WorkflowTransitionEvent $event) {
$this
->setMessage($event, 'generic post-transition');
}