You are here

public function NodeRevisionRevertForm::__construct in Zircon Profile 8

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

Constructs a new NodeRevisionRevertForm.

Parameters

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

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

1 call to NodeRevisionRevertForm::__construct()
NodeRevisionRevertTranslationForm::__construct in core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php
Constructs a new NodeRevisionRevertTranslationForm.
1 method overrides NodeRevisionRevertForm::__construct()
NodeRevisionRevertTranslationForm::__construct in core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php
Constructs a new NodeRevisionRevertTranslationForm.

File

core/modules/node/src/Form/NodeRevisionRevertForm.php, line 52
Contains \Drupal\node\Form\NodeRevisionRevertForm.

Class

NodeRevisionRevertForm
Provides a form for reverting a node revision.

Namespace

Drupal\node\Form

Code

public function __construct(EntityStorageInterface $node_storage, DateFormatter $date_formatter) {
  $this->nodeStorage = $node_storage;
  $this->dateFormatter = $date_formatter;
}