You are here

public function RevisionOverviewController::__construct in Entity API 8.0

Same name and namespace in other branches
  1. 8 src/Controller/RevisionOverviewController.php \Drupal\entity\Controller\RevisionOverviewController::__construct()

Creates a new RevisionOverviewController instance.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

src/Controller/RevisionOverviewController.php, line 55
Contains \Drupal\entity\Controller\RevisionOverviewController.

Class

RevisionOverviewController
Provides a controller which shows the revision history.

Namespace

Drupal\entity\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, RendererInterface $renderer) {
  $this->dateFormatter = $date_formatter;
  $this->renderer = $renderer;
}