%PDF- %PDF-
| Direktori : /www/varak.net/nextcloud.varak.net/apps/app_api/lib/Settings/ |
| Current File : //www/varak.net/nextcloud.varak.net/apps/app_api/lib/Settings/AdminSection.php |
<?php
declare(strict_types=1);
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');
}
}