function NodeRevisionDeleteForm::__construct
Same name in other branches
- 8.9.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::__construct()
- 10 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::__construct()
- 11.x core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::__construct()
Constructs a new NodeRevisionDeleteForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $node_storage: The node storage.
\Drupal\Core\Entity\EntityStorageInterface $node_type_storage: The node type storage.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
File
-
core/
modules/ node/ src/ Form/ NodeRevisionDeleteForm.php, line 68
Class
- NodeRevisionDeleteForm
- Provides a form for deleting a node revision.
Namespace
Drupal\node\FormCode
public function __construct(EntityStorageInterface $node_storage, EntityStorageInterface $node_type_storage, Connection $connection, DateFormatterInterface $date_formatter) {
$this->nodeStorage = $node_storage;
$this->nodeTypeStorage = $node_type_storage;
$this->connection = $connection;
$this->dateFormatter = $date_formatter;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.