You are here

LatlngWidget.php in Geolocation Field 8.3

Same filename and directory in other branches
  1. 8.2 modules/geolocation_demo/src/Form/LatlngWidget.php

File

modules/geolocation_demo/src/Form/LatlngWidget.php
View source
<?php

namespace Drupal\geolocation_demo\Form;

use Drupal\Core\Form\FormStateInterface;

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

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

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

}

Classes

Namesort descending Description
LatlngWidget Returns responses for geolocation_demo module routes.