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'];
    }
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'];
    }
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' ] ; }
Get current menu element.

@param array $options
@param int $level
@return string
Get current menu element .