appName = $appName; $this->urlGenerator = $urlGenerator; $this->request = $request; $this->l = $l; $this->config = $config; $this->initialStateService = $initialStateService; $this->userId = $userId; } /** * @return TemplateResponse */ public function getForm(): TemplateResponse { $searchDisabled = $this->config->getAppValue(Application::APP_ID, 'search_disabled', '0') === '1'; $adminConfig = [ 'search_disabled' => $searchDisabled, ]; $this->initialStateService->provideInitialState($this->appName, 'admin-config', $adminConfig); return new TemplateResponse(Application::APP_ID, 'adminSettings'); } public function getSection(): string { return 'connected-accounts'; } public function getPriority(): int { return 10; } }