class InstallerRouteProviderLazyBuilder in Drupal 10
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder
A Route Provider front-end for use during the installer.
Hierarchy
- class \Drupal\Core\Routing\RouteProviderLazyBuilder implements \Symfony\Component\EventDispatcher\EventSubscriberInterface, PreloadableRouteProviderInterface
- class \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder
Expanded class hierarchy of InstallerRouteProviderLazyBuilder
File
- core/
lib/ Drupal/ Core/ Installer/ InstallerRouteProviderLazyBuilder.php, line 11
Namespace
Drupal\Core\InstallerView source
class InstallerRouteProviderLazyBuilder extends RouteProviderLazyBuilder {
/**
* {@inheritdoc}
*/
public function getRouteByName($name) {
if ($name === '<none>' || $name === '<front>') {
// During the installer template_preprocess_page() uses the routing system
// to determine the front page. At this point building the router for this
// is unnecessary work.
return new Route('/');
}
return parent::getRouteByName($name);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InstallerRouteProviderLazyBuilder:: |
public | function |
Find the route using the provided route name. Overrides RouteProviderLazyBuilder:: |
|
RouteProviderLazyBuilder:: |
protected | property | Flag to determine if router is currently being rebuilt. | |
RouteProviderLazyBuilder:: |
protected | property | Flag to determine if the router has been rebuilt. | |
RouteProviderLazyBuilder:: |
protected | property | The route building service. | |
RouteProviderLazyBuilder:: |
protected | property | The route provider service. | |
RouteProviderLazyBuilder:: |
public | function |
Returns all the routes on the system. Overrides RouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
public | function |
Finds routes that may potentially match the request. Overrides RouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
protected | function | Gets the real route provider service and rebuilds the router id necessary. | |
RouteProviderLazyBuilder:: |
public | function |
Find many routes by their names using the provided list of names. Overrides RouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
public | function |
Get all routes which match a certain pattern. Overrides RouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
public static | function | ||
RouteProviderLazyBuilder:: |
public | function | Determines if the router has been rebuilt. | |
RouteProviderLazyBuilder:: |
public | function |
Pre-load routes by their names using the provided list of names. Overrides PreloadableRouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
public | function |
Resets the route provider object. Overrides RouteProviderInterface:: |
|
RouteProviderLazyBuilder:: |
public | function | Sets the router rebuilding flag to FALSE. | |
RouteProviderLazyBuilder:: |
public | function | Sets the router rebuilding flag to TRUE. | |
RouteProviderLazyBuilder:: |
public | function | RouteProviderLazyBuilder constructor. |