You are here

public function FieldTypeExportInterface::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.

1 method overrides FieldTypeExportInterface::import()
FieldTypeExportBase::import in src/Plugin/FieldTypeExportBase.php
Import a value into a field.

File

src/Plugin/FieldTypeExportInterface.php, line 153

Class

FieldTypeExportInterface
Defines an interface for Field type export plugins.

Namespace

Drupal\entity_export_csv\Plugin

Code

public function import(ContentEntityInterface $entity, FieldDefinitionInterface $field_definition, $property_name = '', array $options = []);