public static function ScheduledTransitionsNewRevision::getSubscribedEvents in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 src/EventSubscriber/ScheduledTransitionsNewRevision.php \Drupal\scheduled_transitions\EventSubscriber\ScheduledTransitionsNewRevision::getSubscribedEvents()
File
- src/
EventSubscriber/ ScheduledTransitionsNewRevision.php, line 144
Class
- ScheduledTransitionsNewRevision
- Determines which revision should be transitioned.
Namespace
Drupal\scheduled_transitions\EventSubscriberCode
public static function getSubscribedEvents() : array {
// Latest revision has priority over default.
$events[ScheduledTransitionsEvents::NEW_REVISION][] = [
'latestRevision',
1000,
];
$events[ScheduledTransitionsEvents::NEW_REVISION][] = [
'newRevision',
];
return $events;
}