public function FieldTypeExportBase::import in Entity Export CSV 8
Import a value into a field.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to export.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
string $property_name: The field property to import.
array $options: An array of additionnal options.
Return value
string The string value to be export in the CSV file.
Overrides FieldTypeExportInterface::import
File
- src/
Plugin/ FieldTypeExportBase.php, line 689
Class
- FieldTypeExportBase
- Base class for Field type export plugins.
Namespace
Drupal\entity_export_csv\PluginCode
public function import(ContentEntityInterface $entity, $field_definition, $property_name = '', $options = []) {
// May be one day we could do the reverse and import values from the csv.
// Currently, this is just a placeholder. No code yet. Any help is welcomed.
}