You are here

GooglegeocoderWidget.php in Geolocation Field 8.3

File

modules/geolocation_google_maps/modules/geolocation_google_maps_demo/src/Form/GooglegeocoderWidget.php
View source
<?php

namespace Drupal\geolocation_google_maps_demo\Form;

use Drupal\Core\Form\FormStateInterface;
use Drupal\geolocation_demo\Form\DemoWidget;

/**
 * Returns responses for geolocation_demo module routes.
 */
class GooglegeocoderWidget extends DemoWidget {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'geolocation_demo_googlegeocoder_widget';
  }

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

}

Classes

Namesort descending Description
GooglegeocoderWidget Returns responses for geolocation_demo module routes.