You are here

public function DataPolicyRevisionDeleteForm::__construct in Data Policy 8

Constructs a new DataPolicyRevisionDeleteForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

File

src/Form/DataPolicyRevisionDeleteForm.php, line 59

Class

DataPolicyRevisionDeleteForm
Provides a form for deleting a Data policy revision.

Namespace

Drupal\data_policy\Form

Code

public function __construct(EntityStorageInterface $entity_storage, Connection $connection, DateFormatterInterface $date_formatter) {
  $this->dataPolicyStorage = $entity_storage;
  $this->connection = $connection;
  $this->dateFormatter = $date_formatter;
}