class TestItem extends FieldItemBase
{ /**
* {@inheritdoc}
*/
public static function defaultStorageSettings() { return [ 'test_field_storage_setting' => 'dummy test string',
'changeable' => 'a changeable field storage setting',
'unchangeable' => 'an unchangeable field storage setting',
'translatable_storage_setting' => 'a translatable field storage setting',
] + parent::
defaultStorageSettings();
} /**
* {@inheritdoc}
*/
public static function defaultFieldSettings() { return [ 'test_field_setting' => 'dummy test string',
'translatable_field_setting' => 'a translatable field setting',
] + parent::
defaultFieldSettings();
}