public function LeafletService::__construct in Leaflet 2.0.x
Same name and namespace in other branches
- 8 src/LeafletService.php \Drupal\leaflet\LeafletService::__construct()
- 2.1.x src/LeafletService.php \Drupal\leaflet\LeafletService::__construct()
LeafletService constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user service.
\Drupal\geofield\GeoPHP\GeoPHPInterface $geophp_wrapper: The geoPhpWrapper.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The Link Generator service.
File
- src/
LeafletService.php, line 59
Class
- LeafletService
- Provides a LeafletService class.
Namespace
Drupal\leafletCode
public function __construct(AccountInterface $current_user, GeoPHPInterface $geophp_wrapper, ModuleHandlerInterface $module_handler, LinkGeneratorInterface $link_generator) {
$this->currentUser = $current_user;
$this->geoPhpWrapper = $geophp_wrapper;
$this->moduleHandler = $module_handler;
$this->link = $link_generator;
}