Groupware.php 835 B

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