RendererInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Page\Config;
  7. /**
  8. * Interface RendererInterface
  9. *
  10. * @package Magento\Framework\View\Page\Config
  11. */
  12. interface RendererInterface
  13. {
  14. /**
  15. * Render Element Attributes
  16. *
  17. * @param string $elementType
  18. *
  19. * @return string
  20. */
  21. public function renderElementAttributes($elementType);
  22. /**
  23. * Render Head Content
  24. *
  25. * @return string
  26. */
  27. public function renderHeadContent();
  28. /**
  29. * Render Title
  30. *
  31. * @return string
  32. */
  33. public function renderTitle();
  34. /**
  35. * Render Metadata
  36. *
  37. * @return string
  38. */
  39. public function renderMetadata();
  40. /**
  41. * Prepare Favicon
  42. *
  43. * @return void
  44. */
  45. public function prepareFavicon();
  46. /**
  47. * Returns rendered HTML for all Assets (CSS before)
  48. *
  49. * @param array $resultGroups
  50. *
  51. * @return string
  52. */
  53. public function renderAssets($resultGroups = []);
  54. }