ElementInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Config\Model\Config\Structure;
  7. use Magento\Config\Model\Config\StructureElementInterface;
  8. /**
  9. * @api
  10. * @since 100.0.2
  11. * @deprecated 101.1.0
  12. * @see StructureElementInterface
  13. */
  14. interface ElementInterface
  15. {
  16. /**
  17. * Set element data
  18. *
  19. * @param array $data
  20. * @param string $scope
  21. * @return void
  22. */
  23. public function setData(array $data, $scope);
  24. /**
  25. * Retrieve element configuration
  26. *
  27. * @return array
  28. */
  29. public function getData();
  30. /**
  31. * Retrieve element id
  32. *
  33. * @return string
  34. */
  35. public function getId();
  36. /**
  37. * Retrieve element label
  38. *
  39. * @return string
  40. */
  41. public function getLabel();
  42. /**
  43. * Check whether element is visible
  44. *
  45. * @return bool
  46. */
  47. public function isVisible();
  48. /**
  49. * Retrieve arbitrary element attribute
  50. *
  51. * @param string $key
  52. * @return mixed
  53. */
  54. public function getAttribute($key);
  55. }