LinkExport.php in Entity Export CSV 8
File
src/Plugin/FieldTypeExport/LinkExport.php
View source
<?php
namespace Drupal\entity_export_csv\Plugin\FieldTypeExport;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\entity_export_csv\Plugin\FieldTypeExportBase;
use Drupal\Core\Field\FieldItemInterface;
class LinkExport extends FieldTypeExportBase {
public function getSummary() {
return [
'message' => [
'#markup' => $this
->t('Link field type exporter.'),
],
];
}
public function massageExportPropertyValue(FieldItemInterface $field_item, $property_name, FieldDefinitionInterface $field_definition, $options = []) {
return parent::massageExportPropertyValue($field_item, $property_name, $field_definition, $options);
}
protected function getFormatExportOptions(FieldDefinitionInterface $field_definition) {
$options = parent::getFormatExportOptions($field_definition);
return $options;
}
}