public function ConsentAgreementForm::__construct in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Form/ConsentAgreementForm.php \Drupal\gdpr_consent\Form\ConsentAgreementForm::__construct()
- 8 modules/gdpr_consent/src/Form/ConsentAgreementForm.php \Drupal\gdpr_consent\Form\ConsentAgreementForm::__construct()
Parameters
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
Overrides ContentEntityForm::__construct
File
- modules/
gdpr_consent/ src/ Form/ ConsentAgreementForm.php, line 39
Class
- ConsentAgreementForm
- Form controller for Consent Agreement edit forms.
Namespace
Drupal\gdpr_consent\FormCode
public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, AccountInterface $current_user) {
parent::__construct($entity_repository, $entity_type_bundle_info, $time);
$this->currentUser = $current_user;
}