You are here

public function NodeController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Controller/NodeController.php \Drupal\node\Controller\NodeController::__construct()

Constructs a NodeController object.

Parameters

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

core/modules/node/src/Controller/NodeController.php, line 48
Contains \Drupal\node\Controller\NodeController.

Class

NodeController
Returns responses for Node routes.

Namespace

Drupal\node\Controller

Code

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