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\ControllerCode
public function __construct(DateFormatter $date_formatter, Renderer $renderer) {
$this->dateFormatter = $date_formatter;
$this->renderer = $renderer;
}