You are here

public static function MyEventSubscriber::getSubscribedEvents in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x scheduled_transitions.api.php \MyEventSubscriber::getSubscribedEvents()

File

./scheduled_transitions.api.php, line 46

Class

MyEventSubscriber
Event subscribers for Scheduled Transitions Field.

Code

public static function getSubscribedEvents() : array {
  return [
    \Drupal\scheduled_transitions\Event\ScheduledTransitionsEvents::NEW_REVISION => [
      'newRevision',
    ],
  ];
}