OutboundRouteProcessorInterface.php 894 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Drupal\Core\RouteProcessor;
  3. use Drupal\Core\Render\BubbleableMetadata;
  4. use Symfony\Component\Routing\Route;
  5. /**
  6. * Defines an interface for classes that process the outbound route.
  7. */
  8. interface OutboundRouteProcessorInterface {
  9. /**
  10. * Processes the outbound route.
  11. *
  12. * @param string $route_name
  13. * The route name.
  14. * @param \Symfony\Component\Routing\Route $route
  15. * The outbound route to process.
  16. * @param array $parameters
  17. * An array of parameters to be passed to the route compiler. Passed by
  18. * reference.
  19. * @param \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata
  20. * (optional) Object to collect route processors' bubbleable metadata.
  21. *
  22. * @return
  23. * The processed path.
  24. */
  25. public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL);
  26. }