AssetInterface.php 683 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Asset;
  7. /**
  8. * An abstraction for static view file (or resource) that may be embedded to a web page
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface AssetInterface
  14. {
  15. /**
  16. * Retrieve URL pointing to a resource
  17. *
  18. * @return string
  19. */
  20. public function getUrl();
  21. /**
  22. * Retrieve type of contents
  23. *
  24. * @return string
  25. */
  26. public function getContentType();
  27. /**
  28. * Retrieve source content type
  29. *
  30. * @return string
  31. * @since 101.0.0
  32. */
  33. public function getSourceContentType();
  34. }