diff --git a/src/Action/ExportBase.php b/src/Action/ExportBase.php index ab219b5..7253af9 100644 --- a/src/Action/ExportBase.php +++ b/src/Action/ExportBase.php @@ -504,6 +504,10 @@ abstract class ExportBase extends ViewsBulkOperationsActionBase implements Conta case 'text_with_summary': $type = 'text'; break; + + case 'entity_reference': + $type = 'entity_reference'; + break; } if (!$type) { diff --git a/src/Plugin/CommerceSheets/FieldHandler/EntityReference.php b/src/Plugin/CommerceSheets/FieldHandler/EntityReference.php new file mode 100644 index 0000000..0185397 --- /dev/null +++ b/src/Plugin/CommerceSheets/FieldHandler/EntityReference.php @@ -0,0 +1,33 @@ +referencedEntities() as $entity) { + $values[] = $entity->label() . ' (' . $entity->id() . ')'; + } + + return implode(', ', $values); + } + +}