You are here

public function AggregatorController::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/Controller/AggregatorController.php \Drupal\aggregator\Controller\AggregatorController::__construct()

Constructs a \Drupal\aggregator\Controller\AggregatorController object.

Parameters

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

File

core/modules/aggregator/src/Controller/AggregatorController.php, line 30

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

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