public static function GeofieldProximitySourceManager::sourceUpdate in Geofield 8
Ajax callback triggered on Source 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.
File
- src/
Plugin/ GeofieldProximitySourceManager.php, line 105
Class
- GeofieldProximitySourceManager
- Provides the Geofield Proximity Source plugin manager.
Namespace
Drupal\geofield\PluginCode
public static function sourceUpdate(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$response
->addCommand(new ReplaceCommand('#proximity-source-configuration', $form['options']['source_configuration']));
return $response;
}