public function GdprField::rtfDescription in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::rtfDescription()
- 8 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::rtfDescription()
Gets the RTF description.
Return value
string The description.
File
- modules/
gdpr_fields/ src/ Entity/ GdprField.php, line 149
Class
- GdprField
- Metadata for a GDPR field.
Namespace
Drupal\gdpr_fields\EntityCode
public function rtfDescription() {
switch ($this->rtf) {
case 'anonymize':
return 'Anonymize';
case 'remove':
return 'Remove';
case 'maybe':
return 'Maybe';
case 'no':
return 'Not Included';
default:
return 'Not Configured';
}
}