public static function PriceItem::defaultFieldSettings in Price 8
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
- 2.0.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
- 2.x src/Plugin/Field/FieldType/PriceItem.php \Drupal\price\Plugin\Field\FieldType\PriceItem::defaultFieldSettings()
- 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\FieldTypeCode
public static function defaultFieldSettings() {
return [
'available_currencies' => [],
] + parent::defaultFieldSettings();
}