You are here

public function SitewideAlertRevisionRevertTranslationForm::__construct in Sitewide Alert 8

Constructs a new SitewideAlertRevisionRevertTranslationForm.

Parameters

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

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides SitewideAlertRevisionRevertForm::__construct

File

src/Form/SitewideAlertRevisionRevertTranslationForm.php, line 44

Class

SitewideAlertRevisionRevertTranslationForm
Provides a form for reverting a Sitewide Alert revision for a single trans.

Namespace

Drupal\sitewide_alert\Form

Code

public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager) {
  parent::__construct($entity_storage, $date_formatter);
  $this->languageManager = $language_manager;
}