ContentProcessorInterface.php 520 B

123456789101112131415161718192021222324252627
  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. use Magento\Framework\View\Asset\File;
  8. /**
  9. * Interface ContentProcessorInterface
  10. */
  11. interface ContentProcessorInterface
  12. {
  13. /**
  14. * Error prefix
  15. */
  16. const ERROR_MESSAGE_PREFIX = 'Compilation from source: ';
  17. /**
  18. * Process file content
  19. *
  20. * @param File $asset
  21. * @return string
  22. */
  23. public function processContent(File $asset);
  24. }