ManagerInterface.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View\Element\UiComponent\Config;
  7. /**
  8. * Interface ManagerInterface
  9. * @deprecated 101.0.0
  10. */
  11. interface ManagerInterface
  12. {
  13. /**
  14. * Search pattern
  15. */
  16. const SEARCH_PATTERN = '%s.xml';
  17. /**
  18. * The anonymous template name
  19. */
  20. const ANONYMOUS_TEMPLATE = 'anonymous_%s_component_%d';
  21. /**
  22. * The key arguments in the data component
  23. */
  24. const COMPONENT_ARGUMENTS_KEY = 'arguments';
  25. /**
  26. * The key attributes in the data component
  27. */
  28. const COMPONENT_ATTRIBUTES_KEY = 'attributes';
  29. /**
  30. * The array key sub components
  31. */
  32. const CHILDREN_KEY = 'children';
  33. /**
  34. * Prepare the initialization data of UI components
  35. *
  36. * @param string $name
  37. * @return ManagerInterface
  38. * @throws \Magento\Framework\Exception\LocalizedException
  39. */
  40. public function prepareData($name);
  41. /**
  42. * Get component data
  43. *
  44. * @param string $name
  45. * @return array
  46. */
  47. public function getData($name);
  48. /**
  49. * To create the raw data components
  50. *
  51. * @param string $component
  52. * @return array
  53. */
  54. public function createRawComponentData($component);
  55. /**
  56. * Get UIReader and collect base files configuration
  57. *
  58. * @param string $name
  59. * @return UiReaderInterface
  60. */
  61. public function getReader($name);
  62. }