Document/Subscriber/RoutableSubscriber.php
private function generateChildRoutes(ChildrenBehavior $document, $locale)
    {
        $routes = [];
        foreach ($document->getChildren() as $child) {
            if (!$child instanceof RoutablePageBehavior) {
                continue;
            }

            $childRoute = $this->createOrUpdatePageRoute($child, $locale);
            $this->entityManager->persist($childRoute);

            $child->setRoutePath($childRoute->getPath());
            $childNode = $this->documentInspector->getNode($child);

            $propertyName = $this->getRoutePathPropertyName($child->getStructureType(), $locale);
            $childNode->setProperty($propertyName, $childRoute->getPath());

            $routes[] = $childRoute->getPath();
        }

        return $routes;
    }
private function generateChildRoutes(ChildrenBehavior $document, $locale)
    {
        $routes = [];
        foreach ($document->getChildren() as $child) {
            if (!$child instanceof RoutablePageBehavior) {
                continue;
            }

            $childRoute = $this->createOrUpdatePageRoute($child, $locale);
            $this->entityManager->persist($childRoute);

            $child->setRoutePath($childRoute->getPath());
            $childNode = $this->documentInspector->getNode($child);

            $propertyName = $this->getRoutePathPropertyName($child->getStructureType(), $locale);
            $childNode->setProperty($propertyName, $childRoute->getPath());

            $routes[] = $childRoute->getPath();
        }

        return $routes;
    }
private function generateChildRoutes ( ChildrenBehavior $ document , $ locale ) { $ routes = [ ] ; foreach ( $ document -> getChildren ( ) as $ child ) { if ( ! $ child instanceof RoutablePageBehavior ) { continue ; } $ childRoute = $ this -> createOrUpdatePageRoute ( $ child , $ locale ) ; $ this -> entityManager -> persist ( $ childRoute ) ; $ child -> setRoutePath ( $ childRoute -> getPath ( ) ) ; $ childNode = $ this -> documentInspector -> getNode ( $ child ) ; $ propertyName = $ this -> getRoutePathPropertyName ( $ child -> getStructureType ( ) , $ locale ) ; $ childNode -> setProperty ( $ propertyName , $ childRoute -> getPath ( ) ) ; $ routes [ ] = $ childRoute -> getPath ( ) ; } return $ routes ; }
Generates child routes.

@param ChildrenBehavior $document
@param string $locale

@return string[]
Generates child routes .