ScopeFallbackResolverInterface.php 537 B

1234567891011121314151617181920212223
  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\ScopeFallbackResolverInterface
  9. *
  10. */
  11. interface ScopeFallbackResolverInterface
  12. {
  13. /**
  14. * Return Scope and Scope ID of parent scope
  15. *
  16. * @param string $scope
  17. * @param int|null $scopeId
  18. * @param bool $forConfig
  19. * @return array [scope, scopeId]
  20. */
  21. public function getFallbackScope($scope, $scopeId, $forConfig = true);
  22. }