public function GoogleMap::getSummary in Google Map Field 8
Returns the summary for a target.
Returning the summary as array is encouraged. The allowance of returning a string only exists for backwards compatibility.
Return value
string|string[] The configuration summary.
Overrides FieldTargetBase::getSummary
File
- src/
Feeds/ Target/ GoogleMap.php, line 137
Class
- GoogleMap
- Defines a google map field mapper.
Namespace
Drupal\google_map_field\Feeds\TargetCode
public function getSummary() {
$summary = parent::getSummary();
$fields = $this
->getConfigurationFields();
$summary[] = $this
->t('<strong>Default values</strong> (if source is not selected):');
foreach ($fields as $index => $name) {
$field_id = 'default_' . $index;
$summary[] = $this
->t('%fieldid: %fieldvalue', [
'%fieldid' => $name,
'%fieldvalue' => $this->configuration[$field_id],
]);
}
return $summary;
}