public function GeocoderFieldPluginManager::getReverseGeocodeSourceFields in Geocoder 8.3
Same name and namespace in other branches
- 8.2 modules/geocoder_field/src/GeocoderFieldPluginManager.php \Drupal\geocoder_field\GeocoderFieldPluginManager::getReverseGeocodeSourceFields()
Gets a list of fields available as source for Reverse Geocode operations.
Parameters
string $entity_type_id: The entity type id.
string $bundle: The bundle.
string $field_name: The field name.
Return value
array The array of source fields and their label.
File
- modules/
geocoder_field/ src/ GeocoderFieldPluginManager.php, line 203
Class
- GeocoderFieldPluginManager
- The Geocoder Field Plugin manager.
Namespace
Drupal\geocoder_fieldCode
public function getReverseGeocodeSourceFields($entity_type_id, $bundle, $field_name) {
// List the possible Reverse Geocoding Field Types.
$source_fields_types = $this->preprocessorPluginManager
->getReverseGeocodeSourceFieldsTypes();
// Allow other modules to add/alter list of possible Reverse
// Geocoding Field Types.
$this->moduleHandler
->alter('reverse_geocode_source_fields', $source_fields_types);
return $this
->getFieldsOptions($entity_type_id, $bundle, $field_name, $source_fields_types);
}