You are here

public function ConsentAgreementRevisionRevertForm::__construct in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::__construct()
  2. 8 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::__construct()

Constructs a new ConsentAgreementRevisionRevertForm.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $entityStorage: The Consent Agreement storage.

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

File

modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php, line 60

Class

ConsentAgreementRevisionRevertForm
Provides a form for reverting a Consent Agreement revision.

Namespace

Drupal\gdpr_consent\Form

Code

public function __construct(EntityStorageInterface $entityStorage, DateFormatterInterface $dateFormatter) {
  $this->consentAgreementStorage = $entityStorage;
  $this->dateFormatter = $dateFormatter;
}