You are here

public function GdprField::rtaDescription in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::rtaDescription()
  2. 8 modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::rtaDescription()

Gets the RTA description.

Return value

string The description.

File

modules/gdpr_fields/src/Entity/GdprField.php, line 175

Class

GdprField
Metadata for a GDPR field.

Namespace

Drupal\gdpr_fields\Entity

Code

public function rtaDescription() {
  switch ($this->rta) {
    case 'inc':
      return 'Included';
    case 'maybe':
      return 'Maybe';
    case 'no':
      return 'Not Included';
    default:
      return 'Not Configured';
  }
}