function geolocation_field_views_data in Geolocation Field 8
Same name and namespace in other branches
- 8.3 geolocation.views.inc \geolocation_field_views_data()
- 8.2 geolocation.views.inc \geolocation_field_views_data()
Implements hook_field_views_data().
Views integration for taxonomy_term_reference fields. Adds a term relationship to the default field data.
See also
field_views_field_default_views_data()
File
- ./
geolocation.views.inc, line 18 - Provide views data for geolocation.module.
Code
function geolocation_field_views_data(FieldStorageConfigInterface $field_storage) {
// User the geofield service to get the views data.
return \Drupal::service('geolocation.core')
->getViewsFieldData($field_storage);
}