Commit 0aa2a08f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2442173 by mpdonadio: Drop the unused class RouteBuilderStatic

parent fd3b0470
Loading
Loading
Loading
Loading
+0 −52
Changes for core/lib/Drupal/Core/Routing/RouteBuilderStatic.php: 0 added lines, 52 removed lines.
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Contains \Drupal\Core\Routing\RouteBuilderStatic.
 */

namespace Drupal\Core\Routing;

/**
 * This builds a static version of the router.
 */
class RouteBuilderStatic implements RouteBuilderInterface {

  /**
   * Marks a rebuild as being necessary.
   *
   * @var bool
   */
  protected $rebuildNeeded = FALSE;

  /**
   * {@inheritdoc}
   */
  public function rebuild() {
    // @todo Add the route for the batch pages when that conversion happens,
    //   http://drupal.org/node/1987816.
  }

  /**
   * {@inheritdoc}
   */
  public function rebuildIfNeeded(){
    if ($this->rebuildNeeded && $this->rebuild()) {
      $this->rebuildNeeded = FALSE;
      return TRUE;
    }
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function setRebuildNeeded() {
    $this->rebuildNeeded = TRUE;
  }

  public function getCollectionDuringRebuild() {
    return FALSE;
  }

}