class InstallerRouteProviderLazyBuilder
Same name in other branches
- 9 core/lib/Drupal/Core/Installer/InstallerRouteProviderLazyBuilder.php \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder
- 10 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 \Drupal\Core\Routing\PreloadableRouteProviderInterface, \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\Core\Installer\InstallerRouteProviderLazyBuilder extends \Drupal\Core\Routing\RouteProviderLazyBuilder
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
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.