You are here

public function SitewideAlertManager::__construct in Sitewide Alert 8

Constructor.

Parameters

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

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/SitewideAlertManager.php, line 42

Class

SitewideAlertManager

Namespace

Drupal\sitewide_alert

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, TimeInterface $time) {
  $this->entityTypeManager = $entityTypeManager;
  $this->time = $time;
}