You are here

public function GDPRFieldData::getSetting in General Data Protection Regulation 7

Get a stored setting.

Parameters

string $setting: The key of the setting to be fetched.

mixed|null $default: The default to be returned if not stored.

Return value

mixed|null The field data setting.

1 call to GDPRFieldData::getSetting()
GDPRFieldData::includeRelatedEntities in modules/gdpr_fields/src/Plugins/GDPRFieldData.php
Whether to recurse to entities included in this property.

File

modules/gdpr_fields/src/Plugins/GDPRFieldData.php, line 181
Contains the GDPRFieldData class.

Class

GDPRFieldData
Class for storing GDPR metadata for fields.

Code

public function getSetting($setting, $default = NULL) {
  if (isset($this->settings[$setting])) {
    return $this->settings[$setting];
  }
  return $default;
}