You are here

public function FlaggingCollectionRevisionRevertTranslationForm::__construct in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Form/FlaggingCollectionRevisionRevertTranslationForm.php \Drupal\flag_lists\Form\FlaggingCollectionRevisionRevertTranslationForm::__construct()

Constructs a new FlaggingCollectionRevisionRevertTranslationForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Flagging collection storage.

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

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

Overrides FlaggingCollectionRevisionRevertForm::__construct

File

src/Form/FlaggingCollectionRevisionRevertTranslationForm.php, line 46

Class

FlaggingCollectionRevisionRevertTranslationForm
Provides a form for reverting a Flagging collection revision.

Namespace

Drupal\flag_lists\Form

Code

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