nextcloud-gpodder/lib/Sections/GPodderSyncPersonal.php

33 lines
743 B
PHP

<?php
namespace OCA\GPodderSync\Sections;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class GPodderSyncPersonal 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 'gpoddersync';
}
public function getName(): string {
return $this->l->t('GPodder Sync');
}
public function getPriority(): int {
return 198;
}
}