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

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

        $event->getNode()->setProperty(self::NODE_HISTORY_FIELD, $document->isHistory());
    }
public function handlePublish(PublishEvent $event)
    {
        $document = $event->getDocument();

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

        $event->getNode()->setProperty(self::NODE_HISTORY_FIELD, $document->isHistory());
    }
public function handlePublish ( PublishEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof RouteBehavior ) { return ; } $ event -> getNode ( ) -> setProperty ( self :: NODE_HISTORY_FIELD , $ document -> isHistory ( ) ) ; }
Handles the history field for the route on publish.

@param PublishEvent $event
Handles the history field for the route on publish .