public function ImageVector::optionsForm in Openlayers 7.3
@TODO What is this return? If it is the form, why is form by reference?
Overrides Base::optionsForm
File
- src/
Plugin/ Source/ ImageVector/ ImageVector.php, line 24 - Source: ImageVector.
Class
- ImageVector
- Class ImageVector.
Namespace
Drupal\openlayers\Plugin\Source\ImageVectorCode
public function optionsForm(array &$form, array &$form_state) {
$form['options']['source'] = array(
'#type' => 'select',
'#title' => t('Source'),
'#empty_option' => t('- Select a Source -'),
'#default_value' => isset($form_state['item']->options['source']) ? $form_state['item']->options['source'] : '',
'#description' => t('Select the source.'),
'#options' => Openlayers::loadAllAsOptions('Source'),
'#required' => TRUE,
);
}