src/Active.php
public function checkAction($actions)
    {
        if (!$this->action) {
            return false;
        }

        if (in_array($this->action, (array)$actions)) {
            return true;
        }

        return false;
    }
public function checkAction($actions)
    {
        if (!$this->action) {
            return false;
        }

        if (in_array($this->action, (array)$actions)) {
            return true;
        }

        return false;
    }
public function checkAction ( $ actions ) { if ( ! $ this -> action ) { return false ; } if ( in_array ( $ this -> action , ( array ) $ actions ) ) { return true ; } return false ; }
Return 'active' class if current route action match one of provided action names

@param array|string $actions

@return bool
Return active class if current route action match one of provided action names