mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
make tabs and submenu working
This commit is contained in:
@@ -29,11 +29,15 @@ class MenuComposer {
|
||||
$routes = array();
|
||||
|
||||
foreach ($this->routeCollection->all() as $key => $route) {
|
||||
if ($route['options']['menu'] === $menuId) {
|
||||
$routes[$route['options']['order']] = $route;
|
||||
if ($route->getOption('menu') === $menuId) {
|
||||
$a['route'] = $key;
|
||||
$a['label'] = $route->getOption('label');
|
||||
$routes[$route->getOption('order')] = $a;
|
||||
}
|
||||
}
|
||||
|
||||
ksort($routes);
|
||||
|
||||
return $routes;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user