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