You are here

public function SitewideAlertController::__construct in Sitewide Alert 8

Constructs a new SitewideAlertController.

Parameters

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter.

\Drupal\Core\Render\Renderer $renderer: The renderer.

File

src/Controller/SitewideAlertController.php, line 45

Class

SitewideAlertController
Class SitewideAlertController.

Namespace

Drupal\sitewide_alert\Controller

Code

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