protected function _prepareIconList(array &$iconList) {
		if (empty($iconList) || !is_array($iconList)) {
			return;
		}

		foreach ($iconList as $i => &$iconListItem) {
			if (is_array($iconListItem) && isAssoc($iconListItem)) {
				foreach ($iconListItem as $topMenu => $subMenu) {
					$subMenuList = '';
					foreach ($subMenu as $subMenuItem) {
						$subMenuClass = null;
						if ($subMenuItem === 'divider') {
							$subMenuItem = '';
							$subMenuClass = 'divider';
						}
						$subMenuList .= $this->Html->tag('li', $subMenuItem, ['class' => $subMenuClass]);
					}
					$topMenuItem = $topMenu . $this->Html->tag('ul', $subMenuList, ['class' => 'dropdown-menu']);
				}
				$iconListItem = $topMenuItem;
			}
		}
	}
protected function _prepareIconList(array &$iconList) {
		if (empty($iconList) || !is_array($iconList)) {
			return;
		}

		foreach ($iconList as $i => &$iconListItem) {
			if (is_array($iconListItem) && isAssoc($iconListItem)) {
				foreach ($iconListItem as $topMenu => $subMenu) {
					$subMenuList = '';
					foreach ($subMenu as $subMenuItem) {
						$subMenuClass = null;
						if ($subMenuItem === 'divider') {
							$subMenuItem = '';
							$subMenuClass = 'divider';
						}
						$subMenuList .= $this->Html->tag('li', $subMenuItem, ['class' => $subMenuClass]);
					}
					$topMenuItem = $topMenu . $this->Html->tag('ul', $subMenuList, ['class' => 'dropdown-menu']);
				}
				$iconListItem = $topMenuItem;
			}
		}
	}
protected function _prepareIconList ( array & $ iconList ) { if ( empty ( $ iconList ) || ! is_array ( $ iconList ) ) { return ; } foreach ( $ iconList as $ i => & $ iconListItem ) { if ( is_array ( $ iconListItem ) && isAssoc ( $ iconListItem ) ) { foreach ( $ iconListItem as $ topMenu => $ subMenu ) { $ subMenuList = '' ; foreach ( $ subMenu as $ subMenuItem ) { $ subMenuClass = null ; if ( $ subMenuItem === 'divider' ) { $ subMenuItem = '' ; $ subMenuClass = 'divider' ; } $ subMenuList .= $ this -> Html -> tag ( 'li' , $ subMenuItem , [ 'class' => $ subMenuClass ] ) ; } $ topMenuItem = $ topMenu . $ this -> Html -> tag ( 'ul' , $ subMenuList , [ 'class' => 'dropdown-menu' ] ) ; } $ iconListItem = $ topMenuItem ; } } }
Prepare a list of the icons main menu by adding a drop-down
element for sub-menu item.

@param array &$iconList Array list of icons for main menu.
@return void
@see ViewExtensionHelper::_getActiveMenuPattern()
Prepare a list of the icons main menu by adding a drop - down element for sub - menu item .