You are here

public function OpignoAnswerRevisionRevertTranslationForm::__construct in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Form/OpignoAnswerRevisionRevertTranslationForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionRevertTranslationForm::__construct()

Constructs a new OpignoAnswerRevisionRevertTranslationForm.

Parameters

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

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

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

Overrides OpignoAnswerRevisionRevertForm::__construct

File

src/Form/OpignoAnswerRevisionRevertTranslationForm.php, line 44

Class

OpignoAnswerRevisionRevertTranslationForm
Provides a form for reverting a Answer revision for a single translation.

Namespace

Drupal\opigno_module\Form

Code

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