PersonalInfo.php 720 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\Personal;
  8. use OCP\IL10N;
  9. use OCP\IURLGenerator;
  10. use OCP\Settings\IIconSection;
  11. class PersonalInfo implements IIconSection {
  12. public function __construct(
  13. private IL10N $l,
  14. private IURLGenerator $urlGenerator,
  15. ) {
  16. }
  17. public function getIcon() {
  18. return $this->urlGenerator->imagePath('core', 'actions/user.svg');
  19. }
  20. public function getID(): string {
  21. return 'personal-info';
  22. }
  23. public function getName(): string {
  24. return $this->l->t('Personal info');
  25. }
  26. public function getPriority(): int {
  27. return 0;
  28. }
  29. }