public function AddressField::getSettingsForm in Geocoder 8.3
Same name and namespace in other branches
- 8.2 modules/geocoder_address/src/Plugin/Geocoder/Field/AddressField.php \Drupal\geocoder_address\Plugin\Geocoder\Field\AddressField::getSettingsForm()
Provides the third party field settings subform.
The returned form API element will be added in behalf of 'geocoder_field' module as third party settings to the field that is storing the geocoding result.
Parameters
\Drupal\Core\Field\FieldConfigInterface $field: The field config.
array $form: The form API form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Return value
array A form API form.
Overrides DefaultField::getSettingsForm
File
- modules/
geocoder_address/ src/ Plugin/ Geocoder/ Field/ AddressField.php, line 26
Class
- AddressField
- Provides a Geocoder Address field plugin.
Namespace
Drupal\geocoder_address\Plugin\Geocoder\FieldCode
public function getSettingsForm(FieldConfigInterface $field, array $form, FormStateInterface &$form_state) {
$element = parent::getSettingsForm($field, $form, $form_state);
// On Address Field the dumper should always be 'geometry'.
$element['dumper'] = [
'#type' => 'value',
'#value' => 'geojson',
];
return $element;
}