1
0

Additional.php 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Settings\Settings\Personal;
  7. use OCP\AppFramework\Http\TemplateResponse;
  8. use OCP\Settings\ISettings;
  9. class Additional implements ISettings {
  10. /**
  11. * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
  12. * @since 9.1
  13. */
  14. public function getForm(): TemplateResponse {
  15. return new TemplateResponse('settings', 'settings/empty');
  16. }
  17. /**
  18. * @return string the section ID, e.g. 'sharing'
  19. * @since 9.1
  20. */
  21. public function getSection(): string {
  22. return 'additional';
  23. }
  24. /**
  25. * @return int whether the form should be rather on the top or bottom of
  26. * the admin section. The forms are arranged in ascending order of the
  27. * priority values. It is required to return a value between 0 and 100.
  28. *
  29. * E.g.: 70
  30. * @since 9.1
  31. */
  32. public function getPriority(): int {
  33. return 5;
  34. }
  35. }