Passthrough.php 579 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Asset\PreProcessor;
  7. use Magento\Framework\View\Asset\PreProcessorInterface;
  8. /**
  9. * Class Passthrough
  10. */
  11. class Passthrough implements PreProcessorInterface
  12. {
  13. /**
  14. * Transform content and/or content type for the specified preprocessing chain object
  15. *
  16. * @param Chain $chain
  17. * @return void
  18. */
  19. public function process(Chain $chain)
  20. {
  21. $chain->setContentType($chain->getTargetContentType());
  22. }
  23. }