public function 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();
  }
  return FALSE;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RouteBuilder.php/function/RouteBuilder::rebuildIfNeeded/8.1.x