NodeController::__construct

public NodeController::__construct(DateFormatterInterface $date_formatter, RendererInterface $renderer)

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 43

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;
}
doc_Drupal
2016-10-29 09:30:39
Comments
Leave a Comment

Please login to continue.