mirror of
https://github.com/chenasraf/nextcloud-jukebox.git
synced 2026-05-18 01:39:00 +00:00
37 lines
730 B
PHP
37 lines
730 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Jukebox\Sections;
|
|
|
|
use OCA\Jukebox\AppInfo\Application;
|
|
use OCP\IL10N;
|
|
use OCP\IURLGenerator;
|
|
use OCP\Settings\IIconSection;
|
|
|
|
class JukeboxUserSection implements IIconSection {
|
|
private IL10N $l;
|
|
private IURLGenerator $urlGenerator;
|
|
|
|
public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
|
|
$this->l = $l;
|
|
$this->urlGenerator = $urlGenerator;
|
|
}
|
|
|
|
public function getIcon(): string {
|
|
return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
|
|
}
|
|
|
|
public function getID(): string {
|
|
return Application::APP_ID;
|
|
}
|
|
|
|
public function getName(): string {
|
|
return $this->l->t('Jukebox');
|
|
}
|
|
|
|
public function getPriority(): int {
|
|
return 50;
|
|
}
|
|
}
|