PersonalSettings.php 656 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files\Settings;
  8. use OCA\Files\AppInfo\Application;
  9. use OCP\AppFramework\Http\TemplateResponse;
  10. use OCP\Settings\ISettings;
  11. class PersonalSettings implements ISettings {
  12. public function getForm(): TemplateResponse {
  13. \OCP\Util::addScript(Application::APP_ID, 'settings-personal');
  14. return new TemplateResponse(Application::APP_ID, 'settings-personal');
  15. }
  16. public function getSection(): string {
  17. return 'sharing';
  18. }
  19. public function getPriority(): int {
  20. return 90;
  21. }
  22. }