nextcloud-pride-flags/lib/Settings/PersonalSection.php

30 lines
576 B
PHP
Raw Normal View History

2024-07-28 17:57:30 +02:00
<?php
declare(strict_tyes=1);
namespace OCA\PrideFlags\Settings;
use OCA\PrideFlags\AppConstants;
use OCP\IL10N;
use OCP\IURLGenerator;
class PersonalSection implements IIconSection {
public function __construct(private IL10N $l10n, private IURLGenerator $urlGenerator) {}
public function getId(): string {
return AppConstants::APP_ID;
}
public function getName(): string {
return 'Pride';
}
public function getPriority(): int {
return 100;
}
public function getIcon(): string {
return $this->urlGenerator->imagePath('core', 'settings-dark.svg');
}
}