'type' => 'settings',
]
];
+ $admin = [
+ [
+ 'id' => 'admin',
+ 'order' => 2,
+ 'href' => '/apps/test/',
+ 'icon' => '/apps/settings/img/admin.svg',
+ 'name' => 'Admin',
+ 'active' => false,
+ 'type' => 'settings',
+ ]
+ ];
$defaults = [
[
- 'id' => 'settings',
+ 'id' => 'personal',
'order' => 1,
'href' => '/apps/test/',
- 'icon' => '/apps/settings/img/admin.svg',
- 'name' => 'Settings',
+ 'icon' => '/apps/settings/img/personal.svg',
+ 'name' => 'Personal',
'active' => false,
'type' => 'settings',
],
'active' => false,
'type' => 'settings',
]]), ['navigations' => [['route' => 'test.page.index', 'name' => 'Test', 'type' => 'settings']]]],
- 'admin' => [array_merge($apps, $defaults, [[
+ 'admin' => [array_merge($apps, $defaults, $admin, [[
'id' => 'test',
'order' => 100,
'href' => '/apps/test/',
'active' => false,
'type' => 'link',
]]), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]], true],
- 'no name' => [array_merge($apps, $defaults), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']]], true],
+ 'no name' => [array_merge($apps, $defaults, $admin), ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index']]], true],
'no admin' => [$defaults, ['navigations' => [['@attributes' => ['role' => 'admin'], 'route' => 'test.page.index', 'name' => 'Test']]]]
];
}