src/Sulu/Component/Content/Document/Subscriber/RouteSubscriber.php
public function handleHydrate(HydrateEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof RouteBehavior) {
            return;
        }

        $document->setHistory($event->getNode()->getPropertyValue(self::NODE_HISTORY_FIELD));
    }
public function handleHydrate(HydrateEvent $event)
    {
        $document = $event->getDocument();

        if (!$document instanceof RouteBehavior) {
            return;
        }

        $document->setHistory($event->getNode()->getPropertyValue(self::NODE_HISTORY_FIELD));
    }
public function handleHydrate ( HydrateEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof RouteBehavior ) { return ; } $ document -> setHistory ( $ event -> getNode ( ) -> getPropertyValue ( self :: NODE_HISTORY_FIELD ) ) ; }
Writes the history status of the node to the document.

@param HydrateEvent $event
Writes the history status of the node to the document .