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

            return $page->isHiddenFromSitemap();
        }

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

            return $page->isHiddenFromSitemap();
        }

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

@param NodeMenuItem $item

@return \Kunstmaan\NodeBundle\Helper\NodeMenuItem
Returns true when the item should be hidden from the sitemap