Skip to content

Commit 47c9736

Browse files
Davide Zenizenosaaur
authored andcommitted
Refactor navigation item handling: consolidate fetching logic and remove NavigationItemHelper
1 parent 26e7217 commit 47c9736

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

library/Icinga/Util/Csp.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,12 @@ protected static function fetchDashletNavigationItemConfigs()
252252
}
253253

254254
/**
255-
* Fetches the navigation items for the currently authenticated user.
255+
* Fetches navigation items for the current user.
256256
*
257-
* This method iterates through all registered navigation types, loads the
258-
* user-specific configuration for each type, and compiles a complete
259-
* list of menu items.
257+
* Iterates through all registered navigation types, loads both user-specific
258+
* and shared configurations, and returns a list of menu items.
260259
*
261-
* @return array An array of navigation items, where each item is an
262-
* associative array containing 'name' and 'url' keys.
260+
* @return array Each item is an associative array with 'name' and 'url' keys.
263261
* Example: [ ['name' => 'Home', 'url' => '/'], ['name' => 'Profile', 'url' => '/profile'] ]
264262
*/
265263
protected static function fetchNavigationItems()

0 commit comments

Comments
 (0)