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

        $event->getNode()->addMixin('mix:versionable');
    }
public function setVersionMixin(AbstractMappingEvent $event)
    {
        if (!$this->support($event->getDocument())) {
            return;
        }

        $event->getNode()->addMixin('mix:versionable');
    }
public function setVersionMixin ( AbstractMappingEvent $ event ) { if ( ! $ this -> support ( $ event -> getDocument ( ) ) ) { return ; } $ event -> getNode ( ) -> addMixin ( 'mix:versionable' ) ; }
Sets the versionable mixin on the node if it is a versionable document.

@param AbstractMappingEvent $event
Sets the versionable mixin on the node if it is a versionable document .