nav = $nav; $this->systemMessages = $systemMessages; $privateaddons = $config->get('config', 'private_addons'); if ($privateaddons === "1" && !$session->getLocalUserId()) { $baseUrl->redirect(); } } protected function content(array $request = []): string { $apps = $this->nav->getAppMenu(); if (count($apps) == 0) { $this->systemMessages->addNotice($this->t('No installed applications.')); } $tpl = Renderer::getMarkupTemplate('apps.tpl'); return Renderer::replaceMacros($tpl, [ '$title' => $this->t('Applications'), '$apps' => $apps, ]); } }