public function AggregatorController::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\ControllerCode
public function __construct(DateFormatterInterface $date_formatter) {
$this->dateFormatter = $date_formatter;
}