src/Kunstmaan/NodeBundle/Helper/NodeMenu.php
public function getActive($slug)
    {
        $bc = $this->getBreadCrumb();
        foreach ($bc as $bcItem) {
            if ($bcItem->getSlug() == $slug) {
                return true;
            }
        }

        return false;
    }
public function getActive($slug)
    {
        $bc = $this->getBreadCrumb();
        foreach ($bc as $bcItem) {
            if ($bcItem->getSlug() == $slug) {
                return true;
            }
        }

        return false;
    }
public function getActive ( $ slug ) { $ bc = $ this -> getBreadCrumb ( ) ; foreach ( $ bc as $ bcItem ) { if ( $ bcItem -> getSlug ( ) == $ slug ) { return true ; } } return false ; }
Check if provided slug is in active path

@param string $slug

@return bool
Check if provided slug is in active path