You are here

public function PetRevisionRevertTranslationForm::__construct in Previewable email templates 8.3

Constructs a new PetRevisionRevertTranslationForm.

Parameters

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

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

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

Overrides PetRevisionRevertForm::__construct

File

src/Form/PetRevisionRevertTranslationForm.php, line 44

Class

PetRevisionRevertTranslationForm
Provides a form for reverting a Pet revision for a single translation.

Namespace

Drupal\pet\Form

Code

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