src/View/Helper/MenuHelper.php
protected function _renderChildren($item, $level)
    {
        if (!$this->_hasChildren($item)) {
            return '';
        }

        $subnavItems = $this->renderNested($item['children'], $level);
        if ($subnavItems === '') {
            return '';
        }

        $templater = $this->templater();

        $htmlAttributes = [
            'class' => $this->_buildSubnavClasses($item, $level)
        ];

        return $this->formatTemplate('subnav', [
            'attrs' => $templater->formatAttributes($htmlAttributes),
            'items' => $subnavItems
        ]);
    }
protected function _renderChildren($item, $level)
    {
        if (!$this->_hasChildren($item)) {
            return '';
        }

        $subnavItems = $this->renderNested($item['children'], $level);
        if ($subnavItems === '') {
            return '';
        }

        $templater = $this->templater();

        $htmlAttributes = [
            'class' => $this->_buildSubnavClasses($item, $level)
        ];

        return $this->formatTemplate('subnav', [
            'attrs' => $templater->formatAttributes($htmlAttributes),
            'items' => $subnavItems
        ]);
    }
protected function _renderChildren ( $ item , $ level ) { if ( ! $ this -> _hasChildren ( $ item ) ) { return '' ; } $ subnavItems = $ this -> renderNested ( $ item [ 'children' ] , $ level ) ; if ( $ subnavItems === '' ) { return '' ; } $ templater = $ this -> templater ( ) ; $ htmlAttributes = [ 'class' => $ this -> _buildSubnavClasses ( $ item , $ level ) ] ; return $ this -> formatTemplate ( 'subnav' , [ 'attrs' => $ templater -> formatAttributes ( $ htmlAttributes ) , 'items' => $ subnavItems ] ) ; }
Render the subnavigation of the menu item.

@param array $item The menu item.
@param int $level The current
@return string
Render the subnavigation of the menu item .