RouteFilterInterface.php 963 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Drupal\Core\Routing;
  3. use Symfony\Component\Routing\Route;
  4. @trigger_error('\Drupal\Core\Routing\RouteFilterInterface is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Instead, you should use \Drupal\Core\Routing\FilterInterface. See https://www.drupal.org/node/2894934', E_USER_DEPRECATED);
  5. /**
  6. * A route filter service to filter down the collection of route instances.
  7. *
  8. * @deprecated in drupal:8.4.0 and is removed from drupal:9.0.0. Instead,
  9. * you should use \Drupal\Core\Routing\FilterInterface.
  10. * See https://www.drupal.org/node/2894934
  11. */
  12. interface RouteFilterInterface extends FilterInterface {
  13. /**
  14. * Determines if the route filter applies to the given route.
  15. *
  16. * @param \Symfony\Component\Routing\Route $route
  17. * The route to consider attaching to.
  18. *
  19. * @return bool
  20. * TRUE if the check applies to the passed route, FALSE otherwise.
  21. */
  22. public function applies(Route $route);
  23. }