Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Routing / RouteFilterInterface.php
diff --git a/web/core/lib/Drupal/Core/Routing/RouteFilterInterface.php b/web/core/lib/Drupal/Core/Routing/RouteFilterInterface.php
new file mode 100644 (file)
index 0000000..a3ccb44
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\Core\Routing;
+
+use Symfony\Cmf\Component\Routing\NestedMatcher\RouteFilterInterface as BaseRouteFilterInterface;
+use Symfony\Component\Routing\Route;
+
+/**
+ * A route filter service to filter down the collection of route instances.
+ */
+interface RouteFilterInterface extends BaseRouteFilterInterface {
+
+  /**
+   * Determines if the route filter applies to the given route.
+   *
+   * @param \Symfony\Component\Routing\Route $route
+   *   The route to consider attaching to.
+   *
+   * @return bool
+   *   TRUE if the check applies to the passed route, FALSE otherwise.
+   */
+  public function applies(Route $route);
+
+}