src/Kunstmaan/SitemapBundle/Twig/SitemapTwigExtension.php
public function isHiddenChildrenFromSitemap(NodeMenuItem $item)
    {
        if (is_subclass_of($item->getNode()->getRefEntityName(), 'Kunstmaan\\SitemapBundle\\Helper\\HiddenFromSitemapInterface')) {
            $page = $item->getPage();

            return $page->isChildrenHiddenFromSitemap();
        }

        return false;
    }
public function isHiddenChildrenFromSitemap(NodeMenuItem $item)
    {
        if (is_subclass_of($item->getNode()->getRefEntityName(), 'Kunstmaan\\SitemapBundle\\Helper\\HiddenFromSitemapInterface')) {
            $page = $item->getPage();

            return $page->isChildrenHiddenFromSitemap();
        }

        return false;
    }
public function isHiddenChildrenFromSitemap ( NodeMenuItem $ item ) { if ( is_subclass_of ( $ item -> getNode ( ) -> getRefEntityName ( ) , 'Kunstmaan\\SitemapBundle\\Helper\\HiddenFromSitemapInterface' ) ) { $ page = $ item -> getPage ( ) ; return $ page -> isChildrenHiddenFromSitemap ( ) ; } return false ; }
Returns true when the children of the item should be hidden from the sitemap

@param NodeMenuItem $item

@return bool
Returns true when the children of the item should be hidden from the sitemap