Section.php 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\WorkflowEngine\Settings;
  7. use OCA\WorkflowEngine\AppInfo\Application;
  8. use OCP\IL10N;
  9. use OCP\IURLGenerator;
  10. use OCP\Settings\IIconSection;
  11. class Section implements IIconSection {
  12. /**
  13. * @param IURLGenerator $url
  14. * @param IL10N $l
  15. */
  16. public function __construct(
  17. private IURLGenerator $url,
  18. private IL10N $l,
  19. ) {
  20. }
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function getID() {
  25. return 'workflow';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getName() {
  31. return $this->l->t('Flow');
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function getPriority() {
  37. return 55;
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function getIcon() {
  43. return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
  44. }
  45. }