RenderableInterface.php 876 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @package Grav\Common\Page
  4. *
  5. * @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Page\Medium;
  9. interface RenderableInterface
  10. {
  11. /**
  12. * Return HTML markup from the medium.
  13. *
  14. * @param string $title
  15. * @param string $alt
  16. * @param string $class
  17. * @param bool $reset
  18. * @return string
  19. */
  20. public function html($title = null, $alt = null, $class = null, $reset = true);
  21. /**
  22. * Return Parsedown Element from the medium.
  23. *
  24. * @param string $title
  25. * @param string $alt
  26. * @param string $class
  27. * @param string $id
  28. * @param bool $reset
  29. * @return string
  30. */
  31. public function parsedownElement($title = null, $alt = null, $class = null, $id = null, $reset = true);
  32. }