Version 1
[yaffs-website] / web / core / lib / Drupal / Core / RouteProcessor / OutboundRouteProcessorInterface.php
diff --git a/web/core/lib/Drupal/Core/RouteProcessor/OutboundRouteProcessorInterface.php b/web/core/lib/Drupal/Core/RouteProcessor/OutboundRouteProcessorInterface.php
new file mode 100644 (file)
index 0000000..4a5bcf7
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+
+namespace Drupal\Core\RouteProcessor;
+
+use Drupal\Core\Render\BubbleableMetadata;
+use Symfony\Component\Routing\Route;
+
+/**
+ * Defines an interface for classes that process the outbound route.
+ */
+interface OutboundRouteProcessorInterface {
+
+  /**
+   * Processes the outbound route.
+   *
+   * @param string $route_name
+   *   The route name.
+   * @param \Symfony\Component\Routing\Route $route
+   *   The outbound route to process.
+   * @param array $parameters
+   *   An array of parameters to be passed to the route compiler. Passed by
+   *   reference.
+   * @param \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata
+   *   (optional) Object to collect route processors' bubbleable metadata.
+   *
+   * @return
+   *   The processed path.
+   */
+  public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL);
+
+}