class Geolocation in Geolocation Field 8
Same name in this branch
- 8 src/Plugin/Geocoder/Dumper/Geolocation.php \Drupal\geolocation\Plugin\Geocoder\Dumper\Geolocation
- 8 src/Plugin/Geocoder/Field/Geolocation.php \Drupal\geolocation\Plugin\Geocoder\Field\Geolocation
Same name and namespace in other branches
- 8.3 src/Plugin/Geocoder/Field/Geolocation.php \Drupal\geolocation\Plugin\Geocoder\Field\Geolocation
- 8.2 src/Plugin/Geocoder/Field/Geolocation.php \Drupal\geolocation\Plugin\Geocoder\Field\Geolocation
Provides a geolocation geocoder field plugin.
Plugin annotation
@GeocoderField(
id = "geolocation",
label = @Translation("Geolocation field plugin"),
field_types = {
"geolocation"
}
)
Hierarchy
- class \Drupal\geolocation\Plugin\Geocoder\Field\Geolocation extends \Drupal\geocoder_field\Plugin\Geocoder\Field\DefaultField
Expanded class hierarchy of Geolocation
5 string references to 'Geolocation'
- geolocation.info.yml in ./
geolocation.info.yml - geolocation.info.yml
- geolocation_demo.info.yml in modules/
geolocation_demo/ geolocation_demo.info.yml - modules/geolocation_demo/geolocation_demo.info.yml
- geolocation_google_places_api.info.yml in modules/
geolocation_google_places_api/ geolocation_google_places_api.info.yml - modules/geolocation_google_places_api/geolocation_google_places_api.info.yml
- views.view.geolocation_common_map_ajax_test.yml in tests/
modules/ geolocation_test_views/ test_views/ views.view.geolocation_common_map_ajax_test.yml - tests/modules/geolocation_test_views/test_views/views.view.geolocation_common_map_ajax_test.yml
- views.view.geolocation_proximity_test.yml in tests/
modules/ geolocation_test_views/ test_views/ views.view.geolocation_proximity_test.yml - tests/modules/geolocation_test_views/test_views/views.view.geolocation_proximity_test.yml
File
- src/
Plugin/ Geocoder/ Field/ Geolocation.php, line 20
Namespace
Drupal\geolocation\Plugin\Geocoder\FieldView source
class Geolocation extends DefaultField {
/**
* {@inheritdoc}
*/
public function getSettingsForm(FieldConfigInterface $field, array $form, FormStateInterface &$form_state) {
$element = parent::getSettingsForm($field, $form, $form_state);
// Hard-wire the dumper for geolocation fields.
$element['dumper'] = [
'#type' => 'value',
'#value' => 'geolocation',
];
return $element;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Geolocation:: |
public | function |