You are here

public static function CreateNewRevision::getSubscribedEvents in Acquia Content Hub 8.2

File

src/EventSubscriber/PreEntitySave/CreateNewRevision.php, line 39

Class

CreateNewRevision
Prepares the entity for a new revision if it is configured to do so.

Namespace

Drupal\acquia_contenthub\EventSubscriber\PreEntitySave

Code

public static function getSubscribedEvents() {
  $events[AcquiaContentHubEvents::PRE_ENTITY_SAVE][] = [
    'onPreEntitySave',
    100,
  ];
  return $events;
}