protected function setToActive()
    {
        $this->attributes['class'] = Utils::addHtmlClass(
            array_get($this->attributes, 'class'),
            $this->menu->config->activeClass
        );
        $this->isActive = true;

        return $this;
    }
protected function setToActive()
    {
        $this->attributes['class'] = Utils::addHtmlClass(
            array_get($this->attributes, 'class'),
            $this->menu->config->activeClass
        );
        $this->isActive = true;

        return $this;
    }
protected function setToActive ( ) { $ this -> attributes [ 'class' ] = Utils :: addHtmlClass ( array_get ( $ this -> attributes , 'class' ) , $ this -> menu -> config -> activeClass ) ; $ this -> isActive = true ; return $ this ; }
Make the item active

@return Item
Make the item active