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

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

        $this->recursivelyRemoveRoutes($document);
    }
public function handleRemove(RemoveEvent $event)
    {
        $document = $event->getDocument();

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

        $this->recursivelyRemoveRoutes($document);
    }
public function handleRemove ( RemoveEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ document instanceof RouteBehavior ) { return ; } $ this -> recursivelyRemoveRoutes ( $ document ) ; }
Removes the routes for the given document and removes history routes if necessary.

@param RemoveEvent $event
Removes the routes for the given document and removes history routes if necessary .