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