You are here

public function IpGeoLocPluginStyleOpenLayers::__construct in IP Geolocation Views & Maps 8

Constructs a PluginBase object. Adds dependency injection

Overrides PluginBase::__construct

File

src/Plugin/views/style/IpGeoLocPluginStyleOpenLayers.php, line 36

Class

IpGeoLocPluginStyleOpenLayers
Views Style plugin extension for OpenLayers (if enabled).

Namespace

Drupal\ip_geoloc\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, IpGeoLocAPI $api, ModuleHandler $module_handler, IpGeoLocGlobal $ip_geoloc_global, TranslationManager $string_translation, IpGeoLocSession $ip_geoloc_session, IpGeoLocViewsPluginStyle $ip_geoloc_view_plugin_style, RequestStack $request_stack) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->api = $api;
  $this->module_handler = $module_handler;
  $this->ip_geoloc_global = $ip_geoloc_global;
  $this->string_translation = $string_translation;
  $this->session = $ip_geoloc_session;
  $this->view_plugin_style = $ip_geoloc_view_plugin_style;
  $this->request_stack = $request_stack;
}