You are here

public function DataPolicyRevisionRevertTranslationForm::__construct in Data Policy 8

Constructs a new DataPolicyRevisionRevertTranslationForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Data policy storage.

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

\Drupal\Component\Datetime\TimeInterface $time: The system time.

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

Overrides DataPolicyRevisionRevertForm::__construct

File

src/Form/DataPolicyRevisionRevertTranslationForm.php, line 46

Class

DataPolicyRevisionRevertTranslationForm
Provides a form for reverting a revision for a single translation.

Namespace

Drupal\data_policy\Form

Code

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