1
0

IMimeIconProvider.php 475 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Preview;
  7. /**
  8. * Interface IMimeIconProvider
  9. *
  10. * @since 28.0.0
  11. */
  12. interface IMimeIconProvider {
  13. /**
  14. * Get the URL to the icon for the given mime type
  15. * Used by the preview provider to show a mime icon
  16. * if no preview is available.
  17. * @since 28.0.0
  18. */
  19. public function getMimeIconUrl(string $mime): string|null;
  20. }