You are here

public function SitewideAlertsController::__construct in Sitewide Alert 8

Constructs a new SitewideAlertsController.

Parameters

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

\Drupal\sitewide_alert\SitewideAlertManager $sitewideAlertManager: The sitewide alert manager.

File

src/Controller/SitewideAlertsController.php, line 37

Class

SitewideAlertsController
Class SitewideAlertsController.

Namespace

Drupal\sitewide_alert\Controller

Code

public function __construct(Renderer $renderer, SitewideAlertManager $sitewideAlertManager) {
  $this->renderer = $renderer;
  $this->sitewideAlertManager = $sitewideAlertManager;
}