geolocation-8.x-3.x-dev/modules/geolocation_google_maps/modules/geolocation_google_maps_demo/src/Form/GooglegeocoderWidget.php
modules/geolocation_google_maps/modules/geolocation_google_maps_demo/src/Form/GooglegeocoderWidget.php
<?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_map', $form, $form_state);
$form['widget'] = $widget_form;
return $form;
}
}
