public static function ListFieldThemerUrl::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.
1 method overrides ListFieldThemerUrl::listFieldOptionsUpdate()
- ListFieldThemer::listFieldOptionsUpdate in src/
Plugin/ GeofieldMapThemer/ ListFieldThemer.php - Ajax callback triggered List Field Options Selection.
File
- src/
Plugin/ GeofieldMapThemer/ ListFieldThemerUrl.php, line 363
Class
- ListFieldThemerUrl
- Style plugin to render a View output as a Leaflet map.
Namespace
Drupal\geofield_map\Plugin\GeofieldMapThemerCode
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_url']['values']));
return $response;
}