function NodeRevisionRevertForm::__construct
Same name in other branches
- 9 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::__construct()
- 8.9.x core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::__construct()
- 10 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\FormCode
public function __construct(EntityStorageInterface $node_storage, DateFormatterInterface $date_formatter, TimeInterface $time) {
$this->nodeStorage = $node_storage;
$this->dateFormatter = $date_formatter;
$this->time = $time;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.