TemplateEngineInterface.php 713 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View;
  7. /**
  8. * Interface for Template Engine
  9. */
  10. interface TemplateEngineInterface
  11. {
  12. /**
  13. * Render template
  14. *
  15. * Render the named template in the context of a particular block and with
  16. * the data provided in $vars.
  17. *
  18. * @param \Magento\Framework\View\Element\BlockInterface $block
  19. * @param string $templateFile
  20. * @param array $dictionary
  21. * @return string rendered template
  22. */
  23. public function render(
  24. \Magento\Framework\View\Element\BlockInterface $block,
  25. $templateFile,
  26. array $dictionary = []
  27. );
  28. }