PreloadableRouteProviderInterface.php 561 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Drupal\Core\Routing;
  3. /**
  4. * Extends the router provider interface to pre-load routes.
  5. */
  6. interface PreloadableRouteProviderInterface extends RouteProviderInterface {
  7. /**
  8. * Pre-load routes by their names using the provided list of names.
  9. *
  10. * This method exists in order to allow performance optimizations. It allows
  11. * pre-loading serialized routes that may latter be retrieved using
  12. * ::getRoutesByName()
  13. *
  14. * @param string[] $names
  15. * Array of route names to load.
  16. */
  17. public function preLoadRoutes($names);
  18. }