¨4.0.1¨
This commit is contained in:
@@ -10,6 +10,7 @@ class MenuItemOrdener
|
||||
* Order the menu items.
|
||||
*
|
||||
* @param array $rootItem
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function order(array $rootItem)
|
||||
@@ -17,11 +18,13 @@ class MenuItemOrdener
|
||||
$this->orderChildren($rootItem['id'], $rootItem['children']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Order child menu items recursively.
|
||||
*
|
||||
* @param int $parentId
|
||||
* @param array $childItems
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
private function orderChildren($parentId, array $childItems)
|
||||
|
||||
Reference in New Issue
Block a user