public static function ComputedFieldItem::defaultFieldSettings in Computed Field 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/ ComputedFieldItem.php, line 29
Class
- ComputedFieldItem
- Plugin implementation of the 'computed' field type.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return array(
'computed_code' => '$value = \'\';',
'display_code' => '$display_output = $value;',
) + parent::defaultFieldSettings();
}