function AggregatorController::__construct

Same name in other branches
  1. 8.9.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.