1
0

Security.php 716 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 Security 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('core', 'actions/password.svg');
  19. }
  20. public function getID(): string {
  21. return 'security';
  22. }
  23. public function getName(): string {
  24. return $this->l->t('Security');
  25. }
  26. public function getPriority(): int {
  27. return 10;
  28. }
  29. }