You are here

public static function UserConsentItem::defaultFieldSettings in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Plugin/Field/FieldType/UserConsentItem.php \Drupal\gdpr_consent\Plugin\Field\FieldType\UserConsentItem::defaultFieldSettings()
  2. 8 modules/gdpr_consent/src/Plugin/Field/FieldType/UserConsentItem.php \Drupal\gdpr_consent\Plugin\Field\FieldType\UserConsentItem::defaultFieldSettings()

Defines the field-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultFieldSettings

File

modules/gdpr_consent/src/Plugin/Field/FieldType/UserConsentItem.php, line 30

Class

UserConsentItem
Plugin implementation of the 'gdpr_user_consent' field type.

Namespace

Drupal\gdpr_consent\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'target_id' => '',
  ] + parent::defaultFieldSettings();
}