Implements hook_content_export_field_value_alter().
Include the color_field in exports by the single_content_sync module.
File
-
./
color_field.module, line 211
Code
function color_field_content_export_field_value_alter(mixed &$value, FieldItemListInterface $field) : void {
switch ($field->getFieldDefinition()
->getType()) {
case 'color_field_type':
$value[] = [
'color' => $field->color,
];
break;
}
}