You are here

public function IpGeoLocViewsPluginStyle::pluginStyleBulkOfFormValidate in IP Geolocation Views & Maps 8

Validation for ip_geoloc_plugin_style_bulk_of_form().

File

src/Services/IpGeoLocViewsPluginStyle.php, line 340

Class

IpGeoLocViewsPluginStyle
Class IpGeoLocViewsPluginStyle.

Namespace

Drupal\ip_geoloc\Services

Code

public function pluginStyleBulkOfFormValidate(&$form, FormStateInterface &$form_state) {
  $style_options = $form_state
    ->getValue('style_options');
  if ($style_options['ip_geoloc_views_plugin_latitude'] == '---') {
    $style_options['ip_geoloc_views_plugin_latitude'] = $style_options['ip_geoloc_views_plugin_latitude_text'];
  }
  if ($style_options['ip_geoloc_views_plugin_longitude'] == '---') {
    $style_options['ip_geoloc_views_plugin_longitude'] = $style_options['ip_geoloc_views_plugin_longitude_text'];
  }
}