public function IpGeoLocPluginStyleMap::buildOptionsForm in IP Geolocation Views & Maps 8
Same name in this branch
- 8 src/Plugin/views/argument/IpGeoLocPluginArgDefaultIPGeoLoc.php \Drupal\ip_geoloc\Plugin\views\argument\IpGeoLocPluginStyleMap::buildOptionsForm()
- 8 src/Plugin/views/style/IpGeoLocPluginStyleMap.php \Drupal\ip_geoloc\Plugin\views\style\IpGeoLocPluginStyleMap::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides ArgumentPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ argument/ IpGeoLocPluginArgDefaultIPGeoLoc.php, line 56
Class
- IpGeoLocPluginStyleMap
- Default argument plugin to extract a user via menu_get_object.
Namespace
Drupal\ip_geoloc\Plugin\views\argumentCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['type'] = [
'#type' => 'select',
'#title' => t('Location attribute to use'),
'#options' => [
'postal_code' => t('Postal code'),
'city_state' => t('City and State/Province'),
'country' => t('Country'),
'lat_long' => t('Latitude, longitude'),
'formatted_address' => t('Formatted address'),
],
'#default_value' => $this->options['type'],
];
}