public function DataPolicyRevisionRevertForm::__construct in Data Policy 8
Constructs a new DataPolicyRevisionRevertForm.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The Data policy storage.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
1 call to DataPolicyRevisionRevertForm::__construct()
- DataPolicyRevisionRevertTranslationForm::__construct in src/
Form/ DataPolicyRevisionRevertTranslationForm.php - Constructs a new DataPolicyRevisionRevertTranslationForm.
1 method overrides DataPolicyRevisionRevertForm::__construct()
- DataPolicyRevisionRevertTranslationForm::__construct in src/
Form/ DataPolicyRevisionRevertTranslationForm.php - Constructs a new DataPolicyRevisionRevertTranslationForm.
File
- src/
Form/ DataPolicyRevisionRevertForm.php, line 59
Class
- DataPolicyRevisionRevertForm
- Provides a form for reverting a Data policy revision.
Namespace
Drupal\data_policy\FormCode
public function __construct(EntityStorageInterface $entity_storage, DateFormatterInterface $date_formatter, TimeInterface $time) {
$this->dataPolicyStorage = $entity_storage;
$this->dateFormatter = $date_formatter;
$this->time = $time;
}