You are here

public function DemoWidget::__construct in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_demo/src/Form/DemoWidget.php \Drupal\geolocation_demo\Form\DemoWidget::__construct()

File

modules/geolocation_demo/src/Form/DemoWidget.php, line 33

Class

DemoWidget
Returns responses for geolocation_demo module routes.

Namespace

Drupal\geolocation_demo\Form

Code

public function __construct(WidgetPluginManager $plugin_manager_field_widget, EntityTypeManager $entity_type_manager) {
  $this->pluginManagerFieldWidget = $plugin_manager_field_widget;
  $this->entityTypeManager = $entity_type_manager;
}