You are here

public function ConsentAgreement::requiresExplicitAcceptance in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::requiresExplicitAcceptance()
  2. 3.0.x modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::requiresExplicitAcceptance()

Check if agreement is explicit.

Return value

bool Whether the agreement is explicit.

File

modules/gdpr_consent/src/Entity/ConsentAgreement.php, line 124

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

public function requiresExplicitAcceptance() {
  return $this
    ->get('mode')->value == 'explicit';
}