1
0

Delegation.php 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Settings\Sections\Admin;
  7. use OCP\IL10N;
  8. use OCP\IURLGenerator;
  9. use OCP\Settings\IIconSection;
  10. class Delegation implements IIconSection {
  11. /**
  12. * @param IURLGenerator $url
  13. * @param IL10N $l
  14. */
  15. public function __construct(
  16. private IURLGenerator $url,
  17. private IL10N $l,
  18. ) {
  19. }
  20. /**
  21. * {@inheritdoc}
  22. * @return string
  23. */
  24. public function getID() {
  25. return 'admindelegation';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. * @return string
  30. */
  31. public function getName() {
  32. return $this->l->t('Administration privileges');
  33. }
  34. /**
  35. * {@inheritdoc}
  36. * @return int
  37. */
  38. public function getPriority() {
  39. return 54;
  40. }
  41. /**
  42. * {@inheritdoc}
  43. * @return string
  44. */
  45. public function getIcon() {
  46. return $this->url->imagePath('core', 'actions/user-admin.svg');
  47. }
  48. }