custom field type yearonly defined by the contrib module " Year Only β " is not supported
create a content with yearonly field value
export that content
get the message about non-supported field types and the value is not exported in the .yml
As the value handled by that field is pretty straightforward, only 1 line need to be updated in ContentExporter.php file. (patch to come)
I also add an example of using the right hook for that field type if this can help
/**
* Implements hook_content_export_field_value_alter().
*/
MODULE_content_export_field_value_alter(&$value, FieldItemListInterface $field) {
$field_definition = $field->getFieldDefinition();
$field_type = $field_definition->getType();
if ($field_type == 'yearonly') {
$value = $field->getValue();
}
}
Fixed
1.3
Code