Capabilities.php 558 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_Trashbin;
  8. use OCP\Capabilities\ICapability;
  9. /**
  10. * Class Capabilities
  11. *
  12. * @package OCA\Files_Trashbin
  13. */
  14. class Capabilities implements ICapability {
  15. /**
  16. * Return this classes capabilities
  17. *
  18. * @return array{files: array{undelete: bool}}
  19. */
  20. public function getCapabilities() {
  21. return [
  22. 'files' => [
  23. 'undelete' => true
  24. ]
  25. ];
  26. }
  27. }