src/Support/Data/MenuPresence.php
public function isActive()
    {
        switch ($this->type) {

            case MenuPresenceType::GROUP:
                return false;

            case MenuPresenceType::ACTION:
                // Activity is based on named route match, unless specific match is defined
                return false;

            case MenuPresenceType::LINK:
                // Activity is based on URL match, unless specific match is defined
                return false;

            // Default omitted on purpose
        }

        return false;
    }
public function isActive()
    {
        switch ($this->type) {

            case MenuPresenceType::GROUP:
                return false;

            case MenuPresenceType::ACTION:
                // Activity is based on named route match, unless specific match is defined
                return false;

            case MenuPresenceType::LINK:
                // Activity is based on URL match, unless specific match is defined
                return false;

            // Default omitted on purpose
        }

        return false;
    }
public function isActive ( ) { switch ( $ this -> type ) { case MenuPresenceType :: GROUP : return false ; case MenuPresenceType :: ACTION : // Activity is based on named route match, unless specific match is defined return false ; case MenuPresenceType :: LINK : // Activity is based on URL match, unless specific match is defined return false ; // Default omitted on purpose } return false ; }
Returns whether this menu item is active based on the current location.

@return bool
@codeCoverageIgnore
@todo
Returns whether this menu item is active based on the current location .