Capabilities.php 433 B

123456789101112131415161718192021222324
  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\Comments;
  8. use OCP\Capabilities\ICapability;
  9. class Capabilities implements ICapability {
  10. /**
  11. * @return array{files: array{comments: bool}}
  12. */
  13. public function getCapabilities(): array {
  14. return [
  15. 'files' => [
  16. 'comments' => true,
  17. ]
  18. ];
  19. }
  20. }