public static function WorkflowTransitionEventSubscriber::getSubscribedEvents in State Machine 8
File
- tests/
modules/ state_machine_test/ src/ EventSubscriber/ WorkflowTransitionEventSubscriber.php, line 32
Class
Namespace
Drupal\state_machine_test\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [
'entity_test_with_bundle.create.pre_transition' => 'onPreTransition',
'entity_test_with_bundle.create.post_transition' => 'onPostTransition',
'entity_test_with_bundle.pre_transition' => 'onGroupPreTransition',
'entity_test_with_bundle.post_transition' => 'onGroupPostTransition',
'state_machine.pre_transition' => 'onGenericPreTransition',
'state_machine.post_transition' => 'onGenericPostTransition',
];
return $events;
}