config = $config; $this->l = $l; } /** * @return TemplateResponse */ public function getForm() { $warning = ''; if (empty($this->config->getAppValue('bbb', 'api.url')) || empty($this->config->getAppValue('bbb', 'api.secret'))) { $warning = $this->l->t('API URL or secret not configured. Please contact your administrator.'); } return new TemplateResponse('bbb', 'manager', ['warning' => $warning]); } /** * @return string the section ID, e.g. 'sharing' */ public function getSection() { return 'bbb'; } /** * @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. * * E.g.: 70 */ public function getPriority() { return 50; } }