You are here

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

Ajax callback in response to new rows or the diff. drop-down being changed.

At this point the $form has already been rebuilt. All we have to do here is tell AJAX what part of the browser form needs to be updated.

File

src/Services/IpGeoLocViewsPluginStyle.php, line 376

Class

IpGeoLocViewsPluginStyle
Class IpGeoLocViewsPluginStyle.

Namespace

Drupal\ip_geoloc\Services

Code

public function pluginStyleRefreshColorTableJs(&$form, &$form_state) {

  // Return the updated table, so that ajax.inc can issue commands to the
  // browser to update only the targeted sections of the page.
  return $form['options']['style_options']['differentiator'];
}