LatlngWidget.php in Geolocation Field 8.2
File
modules/geolocation_demo/src/Form/LatlngWidget.php
View source
<?php
namespace Drupal\geolocation_demo\Form;
use Drupal\Core\Form\FormStateInterface;
class LatlngWidget extends DemoWidget {
public function getFormId() {
return 'geolocation_demo_latlng_widget';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$widget_form = $this
->getWidgetForm('geolocation_latlng', $form, $form_state);
$form['widget'] = $widget_form;
return $form;
}
}
Classes
Name |
Description |
LatlngWidget |
Returns responses for geolocation_demo module routes. |