You are here

public function GdprField::rtfDescription in General Data Protection Regulation 8

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::rtfDescription()
  2. 3.0.x 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\Entity

Code

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';
  }
}