original_string: protected function _getCurrentMenuElement(array $options = [], $level = 1)
      {
          if ($level > 1) {
              $levelElement = $this->_getLevelElement($options, $level);
              if ($this->_View->elementExists($levelElement)) {
                  return $levelElement;
              }
  
              return $options['childMenuAttr']['element'];
          }
  
          return $options['menuAttr']['element'];
      }
code: protected function _getCurrentMenuElement(array $options = [], $level = 1)
      {
          if ($level > 1) {
              $levelElement = $this->_getLevelElement($options, $level);
              if ($this->_View->elementExists($levelElement)) {
                  return $levelElement;
              }
  
              return $options['childMenuAttr']['element'];
          }
  
          return $options['menuAttr']['element'];
      }
code_tokens: protected function _getCurrentMenuElement ( array $ options = [ ] , $ level = 1 ) { if ( $ level > 1 ) { $ levelElement = $ this -> _getLevelElement ( $ options , $ level ) ; if ( $ this -> _View -> elementExists ( $ levelElement ) ) { return $ levelElement ; } return $ options [ 'childMenuAttr' ] [ 'element' ] ; } return $ options [ 'menuAttr' ] [ 'element' ] ; }
docstring: Get current menu element.
  
  @param array $options
  @param int $level
  @return string
docstring_tokens: Get current menu element .