Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,22 @@ +<?php + +namespace Drupal\Core\Routing; + +/** + * Extends the router provider interface to pre-load routes. + */ +interface PreloadableRouteProviderInterface extends RouteProviderInterface { + + /** + * 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() + * + * @param string[] $names + * Array of route names to load. + */ + public function preLoadRoutes($names); + +}