You are here

public function SitewideAlertRevisionRevertForm::__construct in Sitewide Alert 8

Constructs a new SitewideAlertRevisionRevertForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Sitewide Alert storage.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

1 call to SitewideAlertRevisionRevertForm::__construct()
SitewideAlertRevisionRevertTranslationForm::__construct in src/Form/SitewideAlertRevisionRevertTranslationForm.php
Constructs a new SitewideAlertRevisionRevertTranslationForm.
1 method overrides SitewideAlertRevisionRevertForm::__construct()
SitewideAlertRevisionRevertTranslationForm::__construct in src/Form/SitewideAlertRevisionRevertTranslationForm.php
Constructs a new SitewideAlertRevisionRevertTranslationForm.

File

src/Form/SitewideAlertRevisionRevertForm.php, line 50

Class

SitewideAlertRevisionRevertForm
Provides a form for reverting a Sitewide Alert revision.

Namespace

Drupal\sitewide_alert\Form

Code

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