You are here

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

Sets whether this is a GDPR field.

Parameters

bool $enabled: Enabled/disabled.

Return value

$this

File

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

Class

GdprField
Metadata for a GDPR field.

Namespace

Drupal\gdpr_fields\Entity

Code

public function setEnabled($enabled) {
  $this->enabled = $enabled;
  return $this;
}