nextcloud_groupfolder_files.../lib/Sections/SnapshotsSection.php

32 lines
798 B
PHP
Raw Normal View History

<?php
namespace OCA\GroupfolderFilesystemSnapshots\Sections;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class SnapshotsSection 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 'groupfolder_filesystem_snapshots';
}
public function getName(): string {
return $this->l->t('Groupfolder Filesystem Snapshots');
}
public function getPriority(): int {
return 98;
}
}