ConverterInterface.php 519 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Ui\Config;
  7. /**
  8. * Converter interface is used to convert UI Component XML configuration into UI Component interfaces arguments
  9. */
  10. interface ConverterInterface
  11. {
  12. /**
  13. * Convert DOMNode with specific converter to array according to data
  14. *
  15. * @param \DOMNode $node
  16. * @param array $data
  17. * @return array
  18. */
  19. public function convert(\DOMNode $node, array $data);
  20. }