public function OpenlayersService::__construct in Openlayers 8.4
LeafletService constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user service.
\Drupal\openlayers\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/
OpenlayersService.php, line 59
Class
- OpenlayersService
- Provides an OpenlayersService class.
Namespace
Drupal\openlayersCode
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;
}