You are here

public function GdprField::toArray 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::toArray()
  2. 3.0.x modules/gdpr_fields/src/Entity/GdprField.php \Drupal\gdpr_fields\Entity\GdprField::toArray()

Returns an array representation of the GDPR field config.

File

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

Class

GdprField
Metadata for a GDPR field.

Namespace

Drupal\gdpr_fields\Entity

Code

public function toArray() {
  return [
    'bundle' => $this->bundle,
    'name' => $this->name,
    'entity_type_id' => $this->entityTypeId,
    'rtf' => $this->rtf,
    'rta' => $this->rta,
    'enabled' => $this->enabled,
    'anonymizer' => $this->anonymizer,
    'notes' => $this->notes,
    'relationship' => $this->relationship,
    'sars_filename' => $this->sarsFilename,
  ];
}