ScopeTreeProviderInterface.php 706 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App;
  7. /**
  8. * Interface \Magento\Framework\App\ScopeTreeProviderInterface
  9. *
  10. */
  11. interface ScopeTreeProviderInterface
  12. {
  13. /**
  14. * Return tree of scopes like:
  15. * [
  16. * 'scope' => 'default',
  17. * 'scope_id' => null,
  18. * 'scopes' => [
  19. * [
  20. * 'scope' => 'website',
  21. * 'scope_id' => 1,
  22. * 'scopes' => [
  23. * ...
  24. * ],
  25. * ],
  26. * ...
  27. * ],
  28. * ]
  29. *
  30. * @return array
  31. */
  32. public function get();
  33. }