Passthrough.php 463 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Layout\Argument\Interpreter;
  7. use Magento\Framework\Data\Argument\InterpreterInterface;
  8. /**
  9. * Interpreter that pass through params
  10. */
  11. class Passthrough implements InterpreterInterface
  12. {
  13. /**
  14. * {@inheritdoc}
  15. * @return array
  16. */
  17. public function evaluate(array $data)
  18. {
  19. return $data;
  20. }
  21. }