You are here

public static function TaxonomyTermThemerUrl::taxonomyFieldOptionsUpdate in Geofield Map 8.2

Ajax callback triggered Taxonomy 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.

1 method overrides TaxonomyTermThemerUrl::taxonomyFieldOptionsUpdate()
TaxonomyTermThemer::taxonomyFieldOptionsUpdate in src/Plugin/GeofieldMapThemer/TaxonomyTermThemer.php
Ajax callback triggered Taxonomy Field Options Selection.

File

src/Plugin/GeofieldMapThemer/TaxonomyTermThemerUrl.php, line 393

Class

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

Namespace

Drupal\geofield_map\Plugin\GeofieldMapThemer

Code

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