class InstallerRouteProviderLazyBuilder

Same name in other branches
  1. 9 core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder
  2. 10 core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder

A Route Provider front-end for use during the installer.

Hierarchy

Expanded class hierarchy of InstallerRouteProviderLazyBuilder

File

core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php, line 11

Namespace

Drupal\Core\Installer
View 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

Title Sort descending Modifiers Object type Summary Overriden Title
InstallerRouteProviderLazyBuilder::getRouteByName public function Overrides RouteProviderLazyBuilder::getRouteByName
RouteProviderLazyBuilder::$rebuilding protected property Flag to determine if router is currently being rebuilt.
RouteProviderLazyBuilder::$rebuilt protected property Flag to determine if the router has been rebuilt.
RouteProviderLazyBuilder::$routeBuilder protected property The route building service.
RouteProviderLazyBuilder::$routeProvider protected property The route provider service.
RouteProviderLazyBuilder::getAllRoutes public function Overrides RouteProviderInterface::getAllRoutes
RouteProviderLazyBuilder::getRouteCollectionForRequest public function Overrides RouteProviderInterface::getRouteCollectionForRequest
RouteProviderLazyBuilder::getRouteProvider protected function Gets the real route provider service and rebuilds the router id necessary.
RouteProviderLazyBuilder::getRoutesByNames public function Overrides RouteProviderInterface::getRoutesByNames
RouteProviderLazyBuilder::getRoutesByPattern public function Overrides RouteProviderInterface::getRoutesByPattern
RouteProviderLazyBuilder::getSubscribedEvents public static function
RouteProviderLazyBuilder::hasRebuilt public function Determines if the router has been rebuilt.
RouteProviderLazyBuilder::preLoadRoutes public function Overrides PreloadableRouteProviderInterface::preLoadRoutes
RouteProviderLazyBuilder::reset public function Overrides RouteProviderInterface::reset
RouteProviderLazyBuilder::routerRebuildFinished public function Sets the router rebuilding flag to FALSE.
RouteProviderLazyBuilder::routerRebuilding public function Sets the router rebuilding flag to TRUE.
RouteProviderLazyBuilder::__construct public function RouteProviderLazyBuilder constructor.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.