src/Sulu/Component/DocumentManager/Subscriber/Behavior/Audit/TimestampSubscriber.php
public function setChangedForRestore(RestoreEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->supports($document)) {
            return;
        }

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

        $event->getNode()->setProperty(
            $this->propertyEncoder->encode(
                $encoding,
                static::CHANGED,
                $this->documentInspector->getOriginalLocale($document)
            ),
            new \DateTime()
        );
    }
public function setChangedForRestore(RestoreEvent $event)
    {
        $document = $event->getDocument();
        if (!$this->supports($document)) {
            return;
        }

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

        $event->getNode()->setProperty(
            $this->propertyEncoder->encode(
                $encoding,
                static::CHANGED,
                $this->documentInspector->getOriginalLocale($document)
            ),
            new \DateTime()
        );
    }
public function setChangedForRestore ( RestoreEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ document ) ) { return ; } $ encoding = $ this -> getPropertyEncoding ( $ document ) ; $ event -> getNode ( ) -> setProperty ( $ this -> propertyEncoder -> encode ( $ encoding , static :: CHANGED , $ this -> documentInspector -> getOriginalLocale ( $ document ) ) , new \ DateTime ( ) ) ; }
Sets the changed timestamp when restoring a document.

@param RestoreEvent $event
Sets the changed timestamp when restoring a document .