src/Sulu/Component/DocumentManager/Subscriber/Behavior/VersionSubscriber.php
public function rememberCreateVersion(PublishEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->support($document)) {
            return;
        }

        $this->checkpointUuids[] = [
            'uuid' => $event->getNode()->getIdentifier(),
            'locale' => $document->getLocale(),
            'author' => $event->getOption('user'),
        ];
    }
public function rememberCreateVersion(PublishEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->support($document)) {
            return;
        }

        $this->checkpointUuids[] = [
            'uuid' => $event->getNode()->getIdentifier(),
            'locale' => $document->getLocale(),
            'author' => $event->getOption('user'),
        ];
    }
public function rememberCreateVersion ( PublishEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> support ( $ document ) ) { return ; } $ this -> checkpointUuids [ ] = [ 'uuid' => $ event -> getNode ( ) -> getIdentifier ( ) , 'locale' => $ document -> getLocale ( ) , 'author' => $ event -> getOption ( 'user' ) , ] ; }
Remember for which uuids a new version has to be created.

@param PublishEvent $event
Remember for which uuids a new version has to be created .