src/Sulu/Component/DocumentManager/Subscriber/Behavior/Audit/TimestampSubscriber.php
public function setTimestampsOnNodeForPersist(PersistEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        $this->setTimestampsOnNode(
            $document,
            $event->getNode(),
            $event->getAccessor(),
            $this->documentInspector->getOriginalLocale($document),
            new \DateTime()
        );
    }
public function setTimestampsOnNodeForPersist(PersistEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        $this->setTimestampsOnNode(
            $document,
            $event->getNode(),
            $event->getAccessor(),
            $this->documentInspector->getOriginalLocale($document),
            new \DateTime()
        );
    }
public function setTimestampsOnNodeForPersist ( PersistEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ document ) ) { return ; } $ this -> setTimestampsOnNode ( $ document , $ event -> getNode ( ) , $ event -> getAccessor ( ) , $ this -> documentInspector -> getOriginalLocale ( $ document ) , new \ DateTime ( ) ) ; }
Sets the timestamps on the nodes for the persist operation.

@param PersistEvent $event
Sets the timestamps on the nodes for the persist operation .