You are here

protected static function DoubleField::prepareTarget in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 src/Feeds/Target/DoubleField.php \Drupal\double_field\Feeds\Target\DoubleField::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');
}