This commit is contained in:
Harivansh Rathi 2026-04-01 02:28:45 +00:00
parent 12c53f3515
commit dc7969e579
37 changed files with 177 additions and 177 deletions

View file

@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace OCA\betternasControlplane\Settings;
use OCA\betternasControlplane\AppInfo\Application;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class AdminSection implements IIconSection {
public function __construct(
private readonly IURLGenerator $urlGenerator,
private readonly IL10N $l,
) {
}
public function getID(): string {
return Application::APP_ID;
}
public function getName(): string {
return $this->l->t('betternas');
}
public function getPriority(): int {
return 50;
}
public function getIcon(): ?string {
return $this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg');
}
}