diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index f341c6d30949e..4bcd78b7fcf09 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -11,6 +11,7 @@ use OC\App\AppManager; use OC\Group\Manager; use OCP\App\IAppManager; +use OCP\EventDispatcher\IEventDispatcher; use OCP\IConfig; use OCP\IGroupManager; use OCP\INavigationManager; @@ -18,6 +19,7 @@ use OCP\IUser; use OCP\IUserSession; use OCP\L10N\IFactory; +use OCP\Navigation\Events\LoadAdditionalEntriesEvent; use Psr\Log\LoggerInterface; /** @@ -56,6 +58,7 @@ public function __construct( IGroupManager $groupManager, IConfig $config, LoggerInterface $logger, + protected IEventDispatcher $eventDispatcher, ) { $this->appManager = $appManager; $this->urlGenerator = $urlGenerator; @@ -318,6 +321,7 @@ private function init() { ]); } } + $this->eventDispatcher->dispatchTyped(new LoadAdditionalEntriesEvent()); if ($this->userSession->isLoggedIn()) { $user = $this->userSession->getUser(); diff --git a/lib/public/Navigation/Events/LoadAdditionalEntriesEvent.php b/lib/public/Navigation/Events/LoadAdditionalEntriesEvent.php new file mode 100644 index 0000000000000..61db417b92792 --- /dev/null +++ b/lib/public/Navigation/Events/LoadAdditionalEntriesEvent.php @@ -0,0 +1,17 @@ +