public function NodeRevisionRevertForm::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Form/NodeRevisionRevertForm.php \Drupal\node\Form\NodeRevisionRevertForm::__construct()
- 9 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.
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;
}