ConfigInterface.php 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Route;
  7. /**
  8. * Routes configuration interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ConfigInterface
  14. {
  15. /**
  16. * Retrieve route front name
  17. *
  18. * @param string $routeId
  19. * @param string $scope
  20. * @return string
  21. */
  22. public function getRouteFrontName($routeId, $scope = null);
  23. /**
  24. * Get route id by route front name
  25. *
  26. * @param string $frontName
  27. * @param string $scope
  28. * @return string
  29. */
  30. public function getRouteByFrontName($frontName, $scope = null);
  31. /**
  32. * Retrieve list of modules by route front name
  33. *
  34. * @param string $frontName
  35. * @param string $scope
  36. * @return string[]
  37. */
  38. public function getModulesByFrontName($frontName, $scope = null);
  39. }