original_string: protected function _setActive(array $attr = [])
      {
          if ($this->Url->build(self::$_itemParams['item']['url']) == env('REQUEST_URI')) {
              $attr = $this->addClass($attr, 'active');
          }
  
          return $attr;
      }
code: protected function _setActive(array $attr = [])
      {
          if ($this->Url->build(self::$_itemParams['item']['url']) == env('REQUEST_URI')) {
              $attr = $this->addClass($attr, 'active');
          }
  
          return $attr;
      }
code_tokens: protected function _setActive ( array $ attr = [ ] ) { if ( $ this -> Url -> build ( self :: $ _itemParams [ 'item' ] [ 'url' ] ) == env ( 'REQUEST_URI' ) ) { $ attr = $ this -> addClass ( $ attr , 'active' ) ; } return $ attr ; }
docstring: Set active item link.
  
  @param array $attr
  @return array
docstring_tokens: Set active item link .