Files
nextcloud-app-api/lib/Settings/AdminSection.php
Andy Scherzinger c5f3d6a764 docs(reuse): Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-18 08:40:54 +01:00

55 lines
867 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\AppAPI\Settings;
use OCA\AppAPI\AppInfo\Application;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class AdminSection implements IIconSection {
public function __construct(
private IURLGenerator $urlGenerator,
private IL10N $l
) {
}
/**
* @inheritDoc
*/
public function getID(): string {
return Application::APP_ID;
}
/**
* @inheritDoc
*/
public function getName(): string {
return $this->l->t('AppAPI');
}
/**
* @inheritDoc
*/
public function getPriority(): int {
return 50;
}
/**
* @inheritDoc
*/
public function getIcon(): ?string {
return $this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg');
}
}