You are here

public static function PaymentReference::defaultFieldSettings in Payment 8.2

Defines the field-level settings for this plugin.

Return value

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

Overrides EntityReferenceItem::defaultFieldSettings

File

modules/payment_reference/src/Plugin/Field/FieldType/PaymentReference.php, line 40

Class

PaymentReference
Provides a configurable payment reference field.

Namespace

Drupal\payment_reference\Plugin\Field\FieldType

Code

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