src/Sulu/Component/Content/Document/Subscriber/BlameSubscriber.php
public function setChangerForRestore(RestoreEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->supports($event->getDocument())) {
            return;
        }

        $encoding = $this->getPropertyEncoding($document);

        $event->getNode()->setProperty(
            $this->propertyEncoder->encode($encoding, self::CHANGER, $event->getLocale()),
            $event->getOption('user')
        );
    }
public function setChangerForRestore(RestoreEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->supports($event->getDocument())) {
            return;
        }

        $encoding = $this->getPropertyEncoding($document);

        $event->getNode()->setProperty(
            $this->propertyEncoder->encode($encoding, self::CHANGER, $event->getLocale()),
            $event->getOption('user')
        );
    }
public function setChangerForRestore ( RestoreEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ event -> getDocument ( ) ) ) { return ; } $ encoding = $ this -> getPropertyEncoding ( $ document ) ; $ event -> getNode ( ) -> setProperty ( $ this -> propertyEncoder -> encode ( $ encoding , self :: CHANGER , $ event -> getLocale ( ) ) , $ event -> getOption ( 'user' ) ) ; }
Sets the changer for the restore event.

@param RestoreEvent $event
Sets the changer for the restore event .