You are here

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

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/PriceModifiedItem.php \Drupal\price\Plugin\Field\FieldType\PriceModifiedItem::defaultFieldSettings()
  2. 3.0.x src/Plugin/Field/FieldType/PriceModifiedItem.php \Drupal\price\Plugin\Field\FieldType\PriceModifiedItem::defaultFieldSettings()

Defines the field-level settings for this plugin.

Return value

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

Overrides PriceItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/PriceModifiedItem.php, line 56

Class

PriceModifiedItem
Plugin implementation of the 'modified price' field type.

Namespace

Drupal\price\Plugin\Field\FieldType

Code

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