function 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
1 call to RouteBuilder::rebuildIfNeeded()
- RouteBuilder::destruct in core/lib/ Drupal/ Core/ Routing/ RouteBuilder.php 
- Performs destruct operations.
File
- 
              core/lib/ Drupal/ Core/ Routing/ RouteBuilder.php, line 208 
Class
- RouteBuilder
- Managing class for rebuilding the router table.
Namespace
Drupal\Core\RoutingCode
public function rebuildIfNeeded() {
  if ($this->rebuildNeeded) {
    return $this->rebuild();
  }
  return FALSE;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
