You are here

protected static function GoogleMap::prepareTarget in Google Map Field 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/GoogleMap.php, line 24

Class

GoogleMap
Defines a google map field mapper.

Namespace

Drupal\google_map_field\Feeds\Target

Code

protected static function prepareTarget(FieldDefinitionInterface $field_definition) {
  return FieldTargetDefinition::createFromFieldDefinition($field_definition)
    ->addProperty('name')
    ->addProperty('lat')
    ->addProperty('lon')
    ->addProperty('zoom')
    ->addProperty('type')
    ->addProperty('width')
    ->addProperty('height')
    ->addProperty('marker')
    ->addProperty('traffic')
    ->addProperty('marker_icon')
    ->addProperty('controls')
    ->addProperty('infowindow');
}