You are here

function hook_reverse_geocode_source_fields_alter in Geocoder 8.3

Same name and namespace in other branches
  1. 8.2 modules/geocoder_field/geocoder_field.api.php \hook_reverse_geocode_source_fields_alter()

Alter the List of Field types objects of Reverse Geocoding operations.

Modules may implement this hook to alter the list of Reverse Geocoding Field Types.

Parameters

array $source_fields_types: The list of possible Reverse Geocoding Field Types.

See also

\Drupal\search_api\Backend\BackendPluginBase

1 invocation of hook_reverse_geocode_source_fields_alter()
GeocoderFieldPluginManager::getReverseGeocodeSourceFields in modules/geocoder_field/src/GeocoderFieldPluginManager.php
Gets a list of fields available as source for Reverse Geocode operations.

File

modules/geocoder_field/geocoder_field.api.php, line 39
Hooks provided by the Geocoder Field module.

Code

function hook_reverse_geocode_source_fields_alter(array &$source_fields_types) {
  array_push($source_fields_types, "my_new_field_1", "my_new_field_2");
}