function AggregatorController::create

Same name in other branches
  1. 8.9.x core/modules/aggregator/src/Controller/AggregatorController.php \Drupal\aggregator\Controller\AggregatorController::create()

Overrides ControllerBase::create

File

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

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('date.formatter'));
}

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