2022-10-22 18:12:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-06-03 08:23:34 +00:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-10-22 18:12:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCA\Settings\Sections\Personal;
|
|
|
|
|
|
|
|
use OCP\IL10N;
|
|
|
|
use OCP\IURLGenerator;
|
|
|
|
use OCP\Settings\IIconSection;
|
|
|
|
|
|
|
|
class Calendar implements IIconSection {
|
|
|
|
|
2024-10-18 10:04:22 +00:00
|
|
|
public function __construct(
|
|
|
|
private IL10N $l,
|
|
|
|
private IURLGenerator $urlGenerator,
|
|
|
|
) {
|
2022-10-22 18:12:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getIcon(): string {
|
2023-03-31 18:22:03 +00:00
|
|
|
return $this->urlGenerator->imagePath('dav', 'calendar.svg');
|
2022-10-22 18:12:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getID(): string {
|
|
|
|
return 'calendar';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName(): string {
|
|
|
|
return $this->l->t('Calendar');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPriority(): int {
|
|
|
|
return 50;
|
|
|
|
}
|
|
|
|
}
|