renderDropdown() protected méthode

This method is called to create sub-menus.
Since: 2.0.1
protected renderDropdown ( array $items, array $parentItem ) : string
$items array the given items. Please refer to [[Dropdown::items]] for the array structure.
$parentItem array the parent item information. Please refer to [[items]] for the structure of this array.
Résultat string the rendering result.
Exemple #1
0
 protected function renderDropdown($items, $parentItem)
 {
     foreach ($items as &$item) {
         $this->changeItem($item);
     }
     return parent::renderDropdown($items, $parentItem);
 }