Bundle/PageBundle/Twig/Extension/PageExtension.php
protected function getChildrenUrls(BasePage $page)
    {
        $urls = [];

        $children = $page->getInstances();

        //parse the children
        foreach ($children as $child) {
            $url = $child->getUrl();
            $urls[] = $url;

            unset($url);
        }

        return $urls;
    }
protected function getChildrenUrls(BasePage $page)
    {
        $urls = [];

        $children = $page->getInstances();

        //parse the children
        foreach ($children as $child) {
            $url = $child->getUrl();
            $urls[] = $url;

            unset($url);
        }

        return $urls;
    }
protected function getChildrenUrls ( BasePage $ page ) { $ urls = [ ] ; $ children = $ page -> getInstances ( ) ; //parse the children foreach ( $ children as $ child ) { $ url = $ child -> getUrl ( ) ; $ urls [ ] = $ url ; unset ( $ url ) ; } return $ urls ; }
Get the list of urls of the children.

@param BasePage $page

@return aray of strings The list of urls
Get the list of urls of the children .