You are here

public function NodeRevisionRevertTranslationForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php \Drupal\node\Form\NodeRevisionRevertTranslationForm::__construct()

Constructs a new NodeRevisionRevertTranslationForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.

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

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

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

Overrides NodeRevisionRevertForm::__construct

File

core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php, line 46

Class

NodeRevisionRevertTranslationForm
Provides a form for reverting a node revision for a single translation.

Namespace

Drupal\node\Form

Code

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