You are here

protected static function DoubleField::prepareTarget in Double Field 8.3

Same name and namespace in other branches
  1. 4.x src/Feeds/Target/DoubleField.php \Drupal\double_field\Feeds\Target\DoubleField::prepareTarget()

Prepares a target definition.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Return value

\Drupal\feeds\FieldTargetDefinition The target definition.

Overrides FieldTargetBase::prepareTarget

File

src/Feeds/Target/DoubleField.php, line 22

Class

DoubleField
Defines a field mapper for Double Field.

Namespace

Drupal\double_field\Feeds\Target

Code

protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
  return FieldTargetDefinition::createFromFieldDefinition($field_definition)
    ->addProperty('first')
    ->addProperty('second');
}