You are here

public function NodeRevisionRevertForm::__construct in Drupal 9

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

\Drupal\Component\Datetime\TimeInterface $time: The time 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 59

Class

NodeRevisionRevertForm
Provides a form for reverting a node revision.

Namespace

Drupal\node\Form

Code

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