← Back
Editing: Admin.php
<?php declare(strict_types=1); /** * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCA\WebhookListeners\Settings; use OCA\WebhookListeners\AppInfo\Application; use OCP\AppFramework\Http\TemplateResponse; use OCP\Settings\IDelegatedSettings; /** * Empty settings class, used only for admin delegation for now as there is no UI */ class Admin implements IDelegatedSettings { /** * Empty template response */ public function getForm(): TemplateResponse { throw new \Exception('Admin delegation settings should never be rendered'); } public function getSection(): string { return Application::APP_ID . '-admin'; } public function getPriority(): int { return 0; } public function getName(): ?string { /* Use section name alone */ return null; } public function getAuthorizedAppConfig(): array { return []; } }
Save File
Cancel