nextcloud-printer/lib/Settings/Admin/Section.php
2020-11-20 15:52:23 +01:00

49 lines
772 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Printer\Settings\Admin;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class Section implements IIconSection
{
/**
* @var IL10N
*/
private $l;
/**
* @var IURLGenerator
*/
private $url;
public function __construct(IURLGenerator $url, IL10N $l)
{
$this->url = $url;
$this->l = $l;
}
public function getIcon(): string
{
return $this->url->imagePath('printer', 'app-dark.svg');
}
public function getID(): string
{
return 'printer';
}
public function getName(): string
{
return $this->l->t('Printer');
}
public function getPriority(): int
{
return 70;
}
}