You are here

public function PreloadableRouteProviderInterface::preLoadRoutes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 method overrides PreloadableRouteProviderInterface::preLoadRoutes()
RouteProvider::preLoadRoutes in core/lib/Drupal/Core/Routing/RouteProvider.php
Pre-load routes by their names using the provided list of names.

File

core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php, line 25
Contains \Drupal\Core\Routing\PreloadableRouteProviderInterface.

Class

PreloadableRouteProviderInterface
Extends the router provider interface to pre-load routes.

Namespace

Drupal\Core\Routing

Code

public function preLoadRoutes($names);