function hook_geocode_source_fields_alter in Geocoder 8.3
Same name and namespace in other branches
- 8.2 modules/geocoder_field/geocoder_field.api.php \hook_geocode_source_fields_alter()
Alter the List of Field types objects of Geocoding operations.
Modules may implement this hook to alter the list of possible Geocoding Field Types.
Parameters
array $source_fields_types: The list of possible Geocoding Field Types.
See also
\Drupal\search_api\Backend\BackendPluginBase
1 invocation of hook_geocode_source_fields_alter()
- GeocoderFieldPluginManager::getGeocodeSourceFields in modules/
geocoder_field/ src/ GeocoderFieldPluginManager.php - Gets a list of fields available as source for Geocode operations.
File
- modules/
geocoder_field/ geocoder_field.api.php, line 21 - Hooks provided by the Geocoder Field module.
Code
function hook_geocode_source_fields_alter(array &$source_fields_types) {
array_push($source_fields_types, "my_new_field_1", "my_new_field_2");
}