You are here

public function SiteAlertController::__construct in Site Alert 8

Constructs a new SiteAlertController.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

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

\Drupal\site_alert\GetAlertsInterface $getAlerts: The service that retrieves site alerts.

File

src/Controller/SiteAlertController.php, line 49

Class

SiteAlertController
Implements SiteAlertController class.

Namespace

Drupal\site_alert\Controller

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, RendererInterface $renderer, GetAlertsInterface $getAlerts) {
  $this->entityTypeManager = $entityTypeManager;
  $this->renderer = $renderer;
  $this->getAlerts = $getAlerts;
}