You are here

public function WeatherDisplayPlaceForm::countryAjaxCallback in Weather 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/WeatherDisplayPlaceForm.php \Drupal\weather\Form\WeatherDisplayPlaceForm::countryAjaxCallback()

AJAX callback for location settings form.

File

src/Form/WeatherDisplayPlaceForm.php, line 306

Class

WeatherDisplayPlaceForm
Form controller for the weather_display_place entity edit forms.

Namespace

Drupal\weather\Form

Code

public function countryAjaxCallback(array &$form, FormStateInterface $form_state) {
  $ret['geoid'] = $form['geoid'];
  $ret['displayed_name'] = $form['displayed_name'];
  return $ret;
}