BlockInterface.php 394 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Element;
  7. /**
  8. * Magento Block
  9. *
  10. * Used to present information to user
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface BlockInterface
  16. {
  17. /**
  18. * Produce and return block's html output
  19. *
  20. * @return string
  21. */
  22. public function toHtml();
  23. }