public static function CreateModeratedForwardRevision::getSubscribedEvents in Acquia Content Hub 8.2
File
- modules/
acquia_contenthub_moderation/ src/ EventSubscriber/ PreEntitySave/ CreateModeratedForwardRevision.php, line 79
Class
- CreateModeratedForwardRevision
- Sets the entity with a forward revision and change of moderation state.
Namespace
Drupal\acquia_contenthub_moderation\EventSubscriber\PreEntitySaveCode
public static function getSubscribedEvents() {
// Priority is low so that this is one of the last things to be changed.
$events[AcquiaContentHubEvents::PRE_ENTITY_SAVE][] = [
'onPreEntitySave',
5,
];
return $events;
}