You are here

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

Submit handler for the "Remove" button.

Decrements the counter and forces a form rebuild.

1 call to IpGeoLocViewsPluginStyle::pluginStyleRemoveAssociationSubmit()
IpGeoLocViewsPluginStyle::pluginStyleBulkOfForm in src/Services/IpGeoLocViewsPluginStyle.php
The bulk of the plugin style form.

File

src/Services/IpGeoLocViewsPluginStyle.php, line 365

Class

IpGeoLocViewsPluginStyle
Class IpGeoLocViewsPluginStyle.

Namespace

Drupal\ip_geoloc\Services

Code

public function pluginStyleRemoveAssociationSubmit($form, FormStateInterface &$form_state) {
  $form_state
    ->set('num_associations', $form_state
    ->get('num_associations') - 1);
  $form_state
    ->setRebuild();
}