You are here

public function NodeRevisionRevertTranslationForm::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\DateFormatter $date_formatter: The date formatter service.

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

Overrides NodeRevisionRevertForm::__construct

File

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

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, DateFormatter $date_formatter, LanguageManagerInterface $language_manager) {
  parent::__construct($node_storage, $date_formatter);
  $this->languageManager = $language_manager;
}