You are here

public function GeolocationCore::__construct in Geolocation Field 8

Constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: A module handler.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: An EntityTypeManager instance.

\Drupal\Core\Config\ConfigFactory $config: The factory for configuration objects.

\Drupal\geolocation\GeocoderManager $geocoder_manager: The GeocoderManager object.

File

src/GeolocationCore.php, line 63

Class

GeolocationCore
Class GeolocationCore.

Namespace

Drupal\geolocation

Code

public function __construct(ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_manager, ConfigFactory $config, GeocoderManager $geocoder_manager) {
  $this->moduleHandler = $module_handler;
  $this->entityManager = $entity_manager;
  $this->config = $config
    ->get('geolocation.settings');
  $this->geocoderManager = $geocoder_manager;
}