getURLGenerator(); $absoluteUrl = $urlGenerator->getAbsoluteURL('/index.php/settings/apps/app-bundles/richdocuments'); $absoluteUrlAdmin = $urlGenerator->getAbsoluteURL('/index.php/settings/admin/richdocuments'); $absoluteUrlAppInstall = $urlGenerator->getAbsoluteURL('/index.php/settings/apps/app-bundles/richdocumentscode'); if ($this->getSection() === 'richdocumentscode_arm64') { $appArch = 'aarch64'; } if (\OC::$server->getAppManager()->isEnabledForUser('richdocuments')) { $isEnabled = 'yes'; } $parameters = [ 'richdocumentsEnabled' => $isEnabled, 'richdocumentsURL' => $absoluteUrl, 'richdocumentsAdminURL' => $absoluteUrlAdmin, 'appArch' => $appArch, 'appInstallUrl' => $absoluteUrlAppInstall ]; return new TemplateResponse('richdocumentscode', 'admin', $parameters); } /** * @return string the section ID, e.g. 'sharing' */ public function getSection() { return 'richdocumentscode'; } /** * @return int whether the form should be rather on the top or bottom of * the admin section. The forms are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. */ public function getPriority() { return 0; } }