You are here

RouteBuilderInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/RouteBuilderInterface.php

File

core/lib/Drupal/Core/Routing/RouteBuilderInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Routing\RouteBuilderInterface.
 */
namespace Drupal\Core\Routing;

interface RouteBuilderInterface {

  /**
   * Rebuilds the route info and dumps to dumper.
   *
   * @return bool
   *   Returns TRUE if the rebuild succeeds, FALSE otherwise.
   */
  public function rebuild();

  /**
   * Rebuilds the route info and dumps to dumper if necessary.
   *
   * @return bool
   *   Returns TRUE if the rebuild occurs, FALSE otherwise.
   */
  public function rebuildIfNeeded();

  /**
   * Sets the router to be rebuilt next time rebuildIfNeeded() is called.
   */
  public function setRebuildNeeded();

}

Interfaces