You are here

public static function PriceItem::defaultFieldSettings in Price 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
  2. 2.0.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
  3. 2.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
  4. 3.0.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::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

1 call to PriceItem::defaultFieldSettings()
PriceModifiedItem::defaultFieldSettings in src/Plugin/Field/FieldType/PriceModifiedItem.php
Defines the field-level settings for this plugin.
1 method overrides PriceItem::defaultFieldSettings()
PriceModifiedItem::defaultFieldSettings in src/Plugin/Field/FieldType/PriceModifiedItem.php
Defines the field-level settings for this plugin.

File

src/Plugin/Field/FieldType/PriceItem.php, line 71

Class

PriceItem
Plugin implementation of the 'price' field type.

Namespace

Drupal\price\Plugin\Field\FieldType

Code

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