You are here

public static function ConsentAgreement::getModes 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::getModes()
  2. 3.0.x modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::getModes()

Get the available consent modes.

Return value

array Array of consent modes.

File

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

Class

ConsentAgreement
Defines the ConsentAgreement entity.

Namespace

Drupal\gdpr_consent\Entity

Code

public static function getModes() {
  return [
    'implicit' => t('Implicit'),
    'explicit' => t('Explicit'),
  ];
}