public static function ConsentAgreement::getModes in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Entity/ConsentAgreement.php \Drupal\gdpr_consent\Entity\ConsentAgreement::getModes()
- 8 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 368
Class
- ConsentAgreement
- Defines the ConsentAgreement entity.
Namespace
Drupal\gdpr_consent\EntityCode
public static function getModes() {
return [
'implicit' => t('Implicit'),
'explicit' => t('Explicit'),
];
}