You are here

public function RevisionOverviewController::__construct in Entity API 8

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

Creates a new RevisionOverviewController instance.

Parameters

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

File

src/Controller/RevisionOverviewController.php, line 46

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;
}