You are here

public static function ComputedStringItemBase::defaultFieldSettings in Computed Field 8.2

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/ComputedStringItemBase.php, line 19

Class

ComputedStringItemBase
Plugin base of the string field type.

Namespace

Drupal\computed_field\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'code' => '$value = \'\';',
  ] + parent::defaultFieldSettings();
}