function PreloadableRouteProviderInterface::preLoadRoutes
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php \Drupal\Core\Routing\PreloadableRouteProviderInterface::preLoadRoutes()
- 10 core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php \Drupal\Core\Routing\PreloadableRouteProviderInterface::preLoadRoutes()
- 11.x core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php \Drupal\Core\Routing\PreloadableRouteProviderInterface::preLoadRoutes()
Pre-load routes by their names using the provided list of names.
This method exists in order to allow performance optimizations. It allows pre-loading serialized routes that may latter be retrieved using ::getRoutesByName()
Parameters
string[] $names: Array of route names to load.
3 methods override PreloadableRouteProviderInterface::preLoadRoutes()
- RouteProvider::preLoadRoutes in core/
tests/ Drupal/ KernelTests/ RouteProvider.php - Pre-load routes by their names using the provided list of names.
- RouteProvider::preLoadRoutes in core/
lib/ Drupal/ Core/ Routing/ RouteProvider.php - Pre-load routes by their names using the provided list of names.
- RouteProviderLazyBuilder::preLoadRoutes in core/
lib/ Drupal/ Core/ Routing/ RouteProviderLazyBuilder.php - Pre-load routes by their names using the provided list of names.
File
-
core/
lib/ Drupal/ Core/ Routing/ PreloadableRouteProviderInterface.php, line 20
Class
- PreloadableRouteProviderInterface
- Extends the router provider interface to pre-load routes.
Namespace
Drupal\Core\RoutingCode
public function preLoadRoutes($names);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.