l10n->t('Files reminder'); } public function getCategory(): string { return 'system'; } public function run(): SetupResult { if ($this->appManager->isEnabledForAnyone('notifications')) { return SetupResult::success($this->l10n->t('The "files_reminders" app can work properly.')); } else { return SetupResult::warning($this->l10n->t('The "files_reminders" app needs the notification app to work properly. You should either enable notifications or disable files_reminder.')); } } }