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