protected static function Geofield::prepareTarget in Geofield 8
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/ Geofield.php, line 71
Class
- Geofield
- Defines a geofield field mapper.
Namespace
Drupal\geofield\Feeds\TargetCode
protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
return FieldTargetDefinition::createFromFieldDefinition($field_definition)
->addProperty('lat')
->addProperty('lon')
->addProperty('value');
}