config->getAppValue(Application::APP_ID, 'sound_notification') === 'yes' ? 'yes' : 'no'; $defaultSoundTalk = $this->config->getAppValue(Application::APP_ID, 'sound_talk') === 'yes' ? 'yes' : 'no'; $defaultBatchtime = (int)$this->config->getAppValue(Application::APP_ID, 'setting_batchtime'); if ($defaultBatchtime !== Settings::EMAIL_SEND_WEEKLY && $defaultBatchtime !== Settings::EMAIL_SEND_DAILY && $defaultBatchtime !== Settings::EMAIL_SEND_3HOURLY && $defaultBatchtime !== Settings::EMAIL_SEND_HOURLY && $defaultBatchtime !== Settings::EMAIL_SEND_OFF) { $defaultBatchtime = Settings::EMAIL_SEND_3HOURLY; } $this->initialState->provideInitialState('config', [ 'setting' => 'admin', 'setting_batchtime' => $defaultBatchtime, 'sound_notification' => $defaultSoundNotification === 'yes', 'sound_talk' => $defaultSoundTalk === 'yes', ]); return new TemplateResponse('notifications', 'settings/admin'); } #[\Override] public function getSection(): string { return 'notifications'; } #[\Override] public function getPriority(): int { return 20; } }