AssetDumperInterface.php 475 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Drupal\Core\Asset;
  3. /**
  4. * Interface defining a service that dumps an (optimized) asset.
  5. */
  6. interface AssetDumperInterface {
  7. /**
  8. * Dumps an (optimized) asset to persistent storage.
  9. *
  10. * @param string $data
  11. * An (optimized) asset's contents.
  12. * @param string $file_extension
  13. * The file extension of this asset.
  14. *
  15. * @return string
  16. * An URI to access the dumped asset.
  17. */
  18. public function dump($data, $file_extension);
  19. }