RoutePreloader::onAlterRoutes

public RoutePreloader::onAlterRoutes(RouteBuildEvent $event) Alters existing routes for a specific collection. Parameters \Drupal\Core\Routing\RouteBuildEvent $event: The route build event. File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 99 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code public function onAlterRoutes(RouteBuildEvent $event) { $collection = $event->getRouteCollection(); foreach ($collection->

RoutePreloader::getSubscribedEvents

public static RoutePreloader::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array

RoutePreloader::$state

The state key value store. Type: \Drupal\Core\State\StateInterface File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 34 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code protected $state;

RoutePreloader::$routeProvider

The route provider. Type: \Drupal\Core\Routing\RouteProviderInterface|\Drupal\Core\Routing\PreloadableRouteProviderInterface File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 27 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code protected $routeProvider;

RoutePreloader::$nonAdminRoutesOnRebuild

Contains the non-admin routes while rebuilding the routes. Type: array File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 41 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code protected $nonAdminRoutesOnRebuild = array();

RoutePreloader::$cache

The cache backend used to skip the state loading. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 48 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code protected $cache;

RoutePreloader

Defines a class which preloads non-admin routes. On an actual site we want to avoid too many database queries so we build a list of all routes which most likely appear on the actual site, which are all HTML routes not starting with "/admin". Hierarchy class \Drupal\Core\Routing\RoutePreloader implements EventSubscriberInterface File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 20 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RoutePreloader::$ca

RouteMatchInterface::getRouteObject

public RouteMatchInterface::getRouteObject() Returns the route object. Return value \Symfony\Component\Routing\Route|null The route object. NULL if no route is matched. File core/lib/Drupal/Core/Routing/RouteMatchInterface.php, line 36 Class RouteMatchInterface Provides an interface for classes representing the result of routing. Namespace Drupal\Core\Routing Code public function getRouteObject();

RouteMatchInterface::getRouteName

public RouteMatchInterface::getRouteName() Returns the route name. Return value string|null The route name. NULL if no route is matched. File core/lib/Drupal/Core/Routing/RouteMatchInterface.php, line 28 Class RouteMatchInterface Provides an interface for classes representing the result of routing. Namespace Drupal\Core\Routing Code public function getRouteName();

RouteMatchInterface::getRawParameters

public RouteMatchInterface::getRawParameters() Returns the bag of all raw route parameters. Return value \Symfony\Component\HttpFoundation\ParameterBag The parameter bag. See also \Drupal\Core\Routing\RouteMatchInterface::getParameters() File core/lib/Drupal/Core/Routing/RouteMatchInterface.php, line 97 Class RouteMatchInterface Provides an interface for classes representing the result of routing. Namespace Drupal\Core\Routing Code public function getRawParameters();