You are here

public function NodeRevisionDeleteForm::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::__construct()
  2. 9 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\Form

Code

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;
}