3 namespace Drupal\Core\Routing;
6 * Extends the router provider interface to pre-load routes.
8 interface PreloadableRouteProviderInterface extends RouteProviderInterface {
11 * Pre-load routes by their names using the provided list of names.
13 * This method exists in order to allow performance optimizations. It allows
14 * pre-loading serialized routes that may latter be retrieved using
17 * @param string[] $names
18 * Array of route names to load.
20 public function preLoadRoutes($names);