protected static function DoubleField::prepareTarget in Double Field 4.x
Same name and namespace in other branches
- 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\TargetCode
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('first')
->addProperty('second');
}