RenderInterface.php 630 B

123456789101112131415161718192021222324252627282930313233
  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 RenderInterface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface RenderInterface
  14. {
  15. /**
  16. * Render template
  17. *
  18. * @param string $template
  19. * @param array $data
  20. * @return string
  21. */
  22. public function renderTemplate($template, array $data);
  23. /**
  24. * Render container
  25. *
  26. * @param string $content
  27. * @param array $containerInfo
  28. * @return string
  29. */
  30. public function renderContainer($content, array $containerInfo = []);
  31. }