public function active()
    {
        $classes = $this->getAdaptee()->classes;

        foreach ($classes as $class) {
            if (strpos($class, 'current') !== false) {
                return true;
            }
        }

        return false;
    }
public function active()
    {
        $classes = $this->getAdaptee()->classes;

        foreach ($classes as $class) {
            if (strpos($class, 'current') !== false) {
                return true;
            }
        }

        return false;
    }
public function active ( ) { $ classes = $ this -> getAdaptee ( ) -> classes ; foreach ( $ classes as $ class ) { if ( strpos ( $ class , 'current' ) !== false ) { return true ; } } return false ; }
Is current menu item active?

@return bool
Is current menu item active?