ReaderInterface.php 659 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\Layout;
  7. /**
  8. * Interface \Magento\Framework\View\Layout\ReaderInterface
  9. *
  10. */
  11. interface ReaderInterface
  12. {
  13. /**
  14. * Read children elements structure and fill scheduled structure
  15. *
  16. * @param Reader\Context $readerContext
  17. * @param Element $element
  18. * @return $this
  19. */
  20. public function interpret(Reader\Context $readerContext, Element $element);
  21. /**
  22. * Get nodes types that current reader is support
  23. *
  24. * @return string[]
  25. */
  26. public function getSupportedNodes();
  27. }