public function GoogleMapsService::__construct in Geofield Map 8.2
Constructs a new GoogleMapsService object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
Services/ GoogleMapsService.php, line 72
Class
- GoogleMapsService
- Class GoogleMapsService.
Namespace
Drupal\geofield_map\ServicesCode
public function __construct(ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, RequestStack $request_stack) {
$this->config = $config_factory;
$this->languageManager = $language_manager;
$this->gmapApiKey = $this
->setGmapApiKey();
$this->requestStack = $request_stack;
}