You are here

public static function ListFieldThemer::listFieldOptionsUpdate in Geofield Map 8.2

Ajax callback triggered List Field Options Selection.

Parameters

array $form: The build form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Return value

\Drupal\Core\Ajax\AjaxResponse Ajax response with updated form element.

Overrides ListFieldThemerUrl::listFieldOptionsUpdate

File

src/Plugin/GeofieldMapThemer/ListFieldThemer.php, line 297

Class

ListFieldThemer
Style plugin to render a View output as a Leaflet map.

Namespace

Drupal\geofield_map\Plugin\GeofieldMapThemer

Code

public static function listFieldOptionsUpdate(array $form, FormStateInterface $form_state) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new ReplaceCommand('#list-themer-wrapper', $form['options']['style_options']['map_marker_and_infowindow']['theming']['geofieldmap_list_fields']['values']));
  return $response;
}