InboundPathProcessorInterface.php 576 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Drupal\Core\PathProcessor;
  3. use Symfony\Component\HttpFoundation\Request;
  4. /**
  5. * Defines an interface for classes that process the inbound path.
  6. */
  7. interface InboundPathProcessorInterface {
  8. /**
  9. * Processes the inbound path.
  10. *
  11. * @param string $path
  12. * The path to process, with a leading slash.
  13. * @param \Symfony\Component\HttpFoundation\Request $request
  14. * The HttpRequest object representing the current request.
  15. *
  16. * @return string
  17. * The processed path.
  18. */
  19. public function processInbound($path, Request $request);
  20. }