feat: Add admin-delegation-section as well for completeness
Also renamed delegation into admin-delegation in xml schema. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>pull/55261/head
parent
26f50ca3dc
commit
20e536839a
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Settings\Sections\Admin;
|
||||
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class Users implements IIconSection {
|
||||
public function __construct(
|
||||
private IL10N $l,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getID(): string {
|
||||
return 'usersdelegation';
|
||||
}
|
||||
|
||||
public function getName(): string {
|
||||
return $this->l->t('Users');
|
||||
}
|
||||
|
||||
public function getPriority(): int {
|
||||
return 55;
|
||||
}
|
||||
|
||||
public function getIcon(): string {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\WebhookListeners\Settings;
|
||||
|
||||
use OCA\WebhookListeners\AppInfo\Application;
|
||||
use OCP\IL10N;
|
||||
use OCP\Settings\IIconSection;
|
||||
|
||||
class AdminSection implements IIconSection {
|
||||
public function __construct(
|
||||
private IL10N $l,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getID(): string {
|
||||
return Application::APP_ID . '-admin';
|
||||
}
|
||||
|
||||
public function getName(): string {
|
||||
return $this->l->t('Webhooks');
|
||||
}
|
||||
|
||||
public function getPriority(): int {
|
||||
return 56;
|
||||
}
|
||||
|
||||
public function getIcon(): string {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue