You are here

public static function FieldTokenValueItem::defaultFieldSettings in Field Token Value 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldType/FieldTokenValueItem.php \Drupal\field_token_value\Plugin\Field\FieldType\FieldTokenValueItem::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

File

src/Plugin/Field/FieldType/FieldTokenValueItem.php, line 27

Class

FieldTokenValueItem
Provides the Field Token Value field type.

Namespace

Drupal\field_token_value\Plugin\Field\FieldType

Code

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