You are here

public function DemoFormattersController::__construct in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 modules/geolocation_demo/src/Controller/DemoFormattersController.php \Drupal\geolocation_demo\Controller\DemoFormattersController::__construct()
  2. 8.2 modules/geolocation_demo/src/Controller/DemoFormattersController.php \Drupal\geolocation_demo\Controller\DemoFormattersController::__construct()

File

modules/geolocation_demo/src/Controller/DemoFormattersController.php, line 34

Class

DemoFormattersController
Returns responses for geolocation_demo module routes.

Namespace

Drupal\geolocation_demo\Controller

Code

public function __construct(FormatterPluginManager $plugin_manager_field_formatter, EntityTypeManager $entity_type_manager) {
  $this->pluginManagerFieldFormatter = $plugin_manager_field_formatter;
  $this->entityTypeManager = $entity_type_manager;
}