capabilitiesService->hasTemplateSource()) { /** @psalm-suppress NullableReturnStatement */ return null; } $this->initialState->provideCapabilities(); return new TemplateResponse( 'richdocuments', 'personal', [ 'templateFolder' => $this->config->getUserValue($this->userId, 'richdocuments', 'templateFolder', ''), 'hasDocumentSigningSupport' => $this->capabilitiesService->hasDocumentSigningSupport(), 'documentSigningCert' => $this->config->getUserValue($this->userId, 'richdocuments', 'documentSigningCert', ''), 'documentSigningKey' => $this->config->getUserValue($this->userId, 'richdocuments', 'documentSigningKey', ''), 'documentSigningCa' => $this->config->getUserValue($this->userId, 'richdocuments', 'documentSigningCa', ''), 'hasZoteroSupport' => $this->capabilitiesService->hasZoteroSupport(), 'hasSettingIframeSupport' => $this->capabilitiesService->hasSettingIframeSupport(), 'zoteroAPIKey' => $this->config->getUserValue($this->userId, 'richdocuments', 'zoteroAPIKey', ''), 'publicWopiUrl' => $this->appConfig->getCollaboraUrlPublic(), 'setting_iframe_url' => $this->tokenManager->getUrlSrcForMimeType('Settings'), ], 'blank' ); } public function getSection() { if (!$this->capabilitiesService->hasTemplateSource()) { return null; } return 'richdocuments'; } public function getPriority() { return 0; } }