Calendar.php 711 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Settings\Sections\Personal;
  8. use OCP\IL10N;
  9. use OCP\IURLGenerator;
  10. use OCP\Settings\IIconSection;
  11. class Calendar implements IIconSection {
  12. public function __construct(
  13. private IL10N $l,
  14. private IURLGenerator $urlGenerator,
  15. ) {
  16. }
  17. public function getIcon(): string {
  18. return $this->urlGenerator->imagePath('dav', 'calendar.svg');
  19. }
  20. public function getID(): string {
  21. return 'calendar';
  22. }
  23. public function getName(): string {
  24. return $this->l->t('Calendar');
  25. }
  26. public function getPriority(): int {
  27. return 50;
  28. }
  29. }