You are here

protected property RouteProviderLazyBuilder::$rebuilding in Drupal 8

Same name and namespace in other branches
  1. 9 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 45

Class

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

Namespace

Drupal\Core\Routing

Code

protected $rebuilding = FALSE;