RouteBuilderInterface::setRebuildNeeded

public RouteBuilderInterface::setRebuildNeeded() Sets the router to be rebuilt next time rebuildIfNeeded() is called. File core/lib/Drupal/Core/Routing/RouteBuilderInterface.php, line 43 Class RouteBuilderInterface Rebuilds the route information and dumps it. Namespace Drupal\Core\Routing Code public function setRebuildNeeded();

RouteBuilderInterface::rebuildIfNeeded

public RouteBuilderInterface::rebuildIfNeeded() Rebuilds the route information if necessary, and dumps it. Return value bool Returns TRUE if the rebuild occurs, FALSE otherwise. File core/lib/Drupal/Core/Routing/RouteBuilderInterface.php, line 38 Class RouteBuilderInterface Rebuilds the route information and dumps it. Namespace Drupal\Core\Routing Code public function rebuildIfNeeded();

RouteBuilderInterface::rebuild

public RouteBuilderInterface::rebuild() Rebuilds the route information and dumps it. Return value bool Returns TRUE if the rebuild succeeds, FALSE otherwise. File core/lib/Drupal/Core/Routing/RouteBuilderInterface.php, line 30 Class RouteBuilderInterface Rebuilds the route information and dumps it. Namespace Drupal\Core\Routing Code public function rebuild();

RouteBuilderInterface

Rebuilds the route information and dumps it. Rebuilding the route information is the process of gathering all routing data from .routing.yml files, creating a \Symfony\Component\Routing\RouteCollection object out of it, and dispatching that object as a \Drupal\Core\Routing\RouteBuildEvent to all registered listeners. After that, the \Symfony\Component\Routing\RouteCollection object is used to dump the data. Examples of a dump include filling up the routing table, auto-generating Apache mod_rewr

RouteBuilder::__construct

public RouteBuilder::__construct(MatcherDumperInterface $dumper, LockBackendInterface $lock, EventDispatcherInterface $dispatcher, ModuleHandlerInterface $module_handler, ControllerResolverInterface $controller_resolver, CheckProviderInterface $check_provider) Constructs the RouteBuilder using the passed MatcherDumperInterface. Parameters \Drupal\Core\Routing\MatcherDumperInterface $dumper: The matcher dumper used to store the route information. \Drupal\Core\Lock\LockBackendInterface $lock: Th

RouteBuilder::setRebuildNeeded

public RouteBuilder::setRebuildNeeded() Sets the router to be rebuilt next time rebuildIfNeeded() is called. Overrides RouteBuilderInterface::setRebuildNeeded File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 112 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function setRebuildNeeded() { $this->rebuildNeeded = TRUE; }

RouteBuilder::rebuildIfNeeded

public RouteBuilder::rebuildIfNeeded() Rebuilds the route information if necessary, and dumps it. Return value bool Returns TRUE if the rebuild occurs, FALSE otherwise. Overrides RouteBuilderInterface::rebuildIfNeeded File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 203 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function rebuildIfNeeded() { if ($this->rebuildNeeded) { return $this->rebuild(); } r

RouteBuilder::rebuild

public RouteBuilder::rebuild() Rebuilds the route information and dumps it. Return value bool Returns TRUE if the rebuild succeeds, FALSE otherwise. Overrides RouteBuilderInterface::rebuild File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 119 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function rebuild() { if ($this->building) { throw new \RuntimeException('Recursive router rebuild detected.'); } if

RouteBuilder::getRouteDefinitions

protected RouteBuilder::getRouteDefinitions() Retrieves all defined routes from .routing.yml files. Return value array The defined routes, keyed by provider. File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 226 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code protected function getRouteDefinitions() { // Always instantiate a new YamlDiscovery object so that we always search on // the up-to-date list of modules. $discov

RouteBuilder::destruct

public RouteBuilder::destruct() Performs destruct operations. Overrides DestructableInterface::destruct File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 213 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function destruct() { // Rebuild routes only once at the end of the request lifecycle to not // trigger multiple rebuilds and also make the page more responsive for the // user. $this->rebuildIfNeeded(); }