You are here

public function GooglegeocoderWidget::buildForm in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/modules/geolocation_google_maps_demo/src/Form/GooglegeocoderWidget.php \Drupal\geolocation_google_maps_demo\Form\GooglegeocoderWidget::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

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

Return value

array The form structure.

Overrides FormInterface::buildForm

File

modules/geolocation_google_maps/modules/geolocation_google_maps_demo/src/Form/GooglegeocoderWidget.php, line 23

Class

GooglegeocoderWidget
Returns responses for geolocation_demo module routes.

Namespace

Drupal\geolocation_google_maps_demo\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $widget_form = $this
    ->getWidgetForm('geolocation_googlegeocoder', $form, $form_state);
  $form['widget'] = $widget_form;
  return $form;
}