1
0

IPublicShareTemplateProvider.php 608 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Share;
  8. use OCP\AppFramework\Http\TemplateResponse;
  9. /**
  10. * @since 26.0.0
  11. */
  12. interface IPublicShareTemplateProvider {
  13. /**
  14. * Returns whether the provider can respond for the given share.
  15. * @since 26.0.0
  16. */
  17. public function shouldRespond(IShare $share): bool;
  18. /**
  19. * Returns the a template for a given share.
  20. * @since 26.0.0
  21. */
  22. public function renderPage(IShare $share, string $token, string $path): TemplateResponse;
  23. }