You are here

public function EventRevisionRevertTranslationForm::__construct in Event 8

Constructs a new EventRevisionRevertTranslationForm.

Parameters

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

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

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

Overrides EventRevisionRevertForm::__construct

File

src/Form/EventRevisionRevertTranslationForm.php, line 45

Class

EventRevisionRevertTranslationForm
Provides a form for reverting a Event revision for a single translation.

Namespace

Drupal\event\Form

Code

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