NodeRevisionRevertTranslationForm::__construct

public NodeRevisionRevertTranslationForm::__construct(EntityStorageInterface $node_storage, DateFormatterInterface $date_formatter, LanguageManagerInterface $language_manager)

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.

Overrides NodeRevisionRevertForm::__construct

File

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

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) {
  parent::__construct($node_storage, $date_formatter);
  $this->languageManager = $language_manager;
}
doc_Drupal
2016-10-29 09:31:13
Comments
Leave a Comment

Please login to continue.