You are here

public static function RangeItemBase::defaultFieldSettings in Range 8

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

src/Plugin/Field/FieldType/RangeItemBase.php, line 38

Class

RangeItemBase
Base class for 'range' configurable field types.

Namespace

Drupal\range\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'min' => '',
    'max' => '',
    'field' => [
      'prefix' => '',
      'suffix' => '',
    ],
    'from' => [
      'prefix' => '',
      'suffix' => '',
    ],
    'to' => [
      'prefix' => '',
      'suffix' => '',
    ],
    'combined' => [
      'prefix' => '',
      'suffix' => '',
    ],
  ] + parent::defaultFieldSettings();
}