protected function GoogleMap::prepareValue in Google Map Field 8
Prepares a single value.
Parameters
int $delta: The field delta.
array $values: The values.
Overrides FieldTargetBase::prepareValue
File
- src/
Feeds/ Target/ GoogleMap.php, line 43
Class
- GoogleMap
- Defines a google map field mapper.
Namespace
Drupal\google_map_field\Feeds\TargetCode
protected function prepareValue($delta, array &$values) {
$fields = $this
->getConfigurationFields();
foreach ($fields as $field_id => $name) {
$config_id = 'default_' . $field_id;
if (!$values['value']) {
$values['value'] = $this->configuration[$config_id];
}
}
}