protected function FieldTypeExportBase::getPropertyExportOptions in Entity Export CSV 8
Get the properties options to export.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
array An array of properties.
3 calls to FieldTypeExportBase::getPropertyExportOptions()
- FieldTypeExportBase::allowExportMultipleProperties in src/
Plugin/ FieldTypeExportBase.php - Default method to allow to export multiple properties.
- FieldTypeExportBase::buildConfigurationForm in src/
Plugin/ FieldTypeExportBase.php - Build the configuration form.
- FieldTypeExportBase::getPropertyLabel in src/
Plugin/ FieldTypeExportBase.php - Get the property header label.
File
- src/
Plugin/ FieldTypeExportBase.php, line 584
Class
- FieldTypeExportBase
- Base class for Field type export plugins.
Namespace
Drupal\entity_export_csv\PluginCode
protected function getPropertyExportOptions(FieldDefinitionInterface $field_definition) {
$properties = $this
->getFieldProperties($field_definition);
$options = [];
foreach ($properties as $property_name => $property) {
$options[$property_name] = $property
->getLabel();
}
return $options;
}