You are here

public function SitewideAlertRevisionDeleteForm::__construct in Sitewide Alert 8

Constructs a new SitewideAlertRevisionDeleteForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.

\Drupal\Core\Database\Connection $connection: The database connection.

File

src/Form/SitewideAlertRevisionDeleteForm.php, line 57

Class

SitewideAlertRevisionDeleteForm
Provides a form for deleting a Sitewide Alert revision.

Namespace

Drupal\sitewide_alert\Form

Code

public function __construct(EntityStorageInterface $entity_storage, Connection $connection, DateFormatterInterface $date_formatter) {
  $this->SitewideAlertStorage = $entity_storage;
  $this->connection = $connection;
  $this->dateFormatter = $date_formatter;
}