diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-04 10:00:27 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-08-04 21:36:22 +0200 |
commit | 71b62c4203a25beefeab73f73668919c813e3a50 (patch) | |
tree | e75b6b0338ed800ddf88bfe27ce6703045c18e48 /lib/private/NavigationManager.php | |
parent | 6eced42b7a40f5b0ea0489244583219d0ee2e7af (diff) | |
download | nextcloud-server-71b62c4203a25beefeab73f73668919c813e3a50.tar.gz nextcloud-server-71b62c4203a25beefeab73f73668919c813e3a50.zip |
Show mime icon, bump bundles, make the SearchResultEntry class non-abstract, Fix header search icon, various fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r-- | lib/private/NavigationManager.php | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 81642fac234..7ae78875249 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -79,12 +79,7 @@ class NavigationManager implements INavigationManager { } /** - * Creates a new navigation entry - * - * @param array|\Closure $entry Array containing: id, name, order, icon and href key - * The use of a closure is preferred, because it will avoid - * loading the routing of your app, unless required. - * @return void + * @inheritDoc */ public function add($entry) { if ($entry instanceof \Closure) { @@ -106,10 +101,7 @@ class NavigationManager implements INavigationManager { } /** - * Get a list of navigation entries - * - * @param string $type type of the navigation entries - * @return array + * @inheritDoc */ public function getAll(string $type = 'link'): array { $this->init(); @@ -171,19 +163,14 @@ class NavigationManager implements INavigationManager { } /** - * Sets the current navigation entry of the currently running app - * @param string $id of the app entry to activate (from added $entry) + * @inheritDoc */ public function setActiveEntry($id) { $this->activeEntry = $id; } /** - * gets the active Menu entry - * @return string id or empty string - * - * This function returns the id of the active navigation entry (set by - * setActiveEntry + * @inheritDoc */ public function getActiveEntry() { return $this->activeEntry; |