function openlayers_dev_dialog_form in Openlayers 7.3
Form callback handler to prepare the developer dialog form.
Prepares an object options form to be used in a frontend development dialog.
Parameters
array $form: The form array - likely emtpy.
array $form_state: The form state.
object $object: The object that provides the options form. Has to have the public method optionsForms().
Return value
array The populated form.
See also
\Drupal\openlayers\Plugin\Source\GeoJSON\GeoJSON::getJS()
1 string reference to 'openlayers_dev_dialog_form'
- GeoJSON::getJS in src/
Plugin/ Source/ GeoJSON/ GeoJSON.php - !Attention! This function will remove any option that is named after a plugin type e.g.: layers, controls, styles, interactions, components .
File
- src/
Plugin/ Source/ GeoJSON/ forms.inc, line 25 - Provides forms for the GeoJSON Source.
Code
function openlayers_dev_dialog_form(array $form, array $form_state, $object) {
$object
->optionsForm($form, $form_state);
openlayers_dev_dialog_form_clean($form);
return $form;
}