RouteProviderLazyBuilder::$rebuilding

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::rebuilding
  2. 8.9.x core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::rebuilding
  3. 10 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::rebuilding

Flag to determine if router is currently being rebuilt.

Used to prevent recursive router rebuilds during module installation. Recursive rebuilds can occur when route information is required by alter hooks that are triggered during a rebuild, for example, hook_menu_links_discovered_alter().

Type: bool

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 44

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

protected $rebuilding = FALSE;

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