3 namespace Drupal\Core\RouteProcessor;
5 use Drupal\Core\Render\BubbleableMetadata;
6 use Symfony\Component\Routing\Route;
9 * Defines an interface for classes that process the outbound route.
11 interface OutboundRouteProcessorInterface {
14 * Processes the outbound route.
16 * @param string $route_name
18 * @param \Symfony\Component\Routing\Route $route
19 * The outbound route to process.
20 * @param array $parameters
21 * An array of parameters to be passed to the route compiler. Passed by
23 * @param \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata
24 * (optional) Object to collect route processors' bubbleable metadata.
29 public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL);