You are here

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

Plugin base constructor for dependency injection.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: Plugin identifier.

string $plugin_definition: Plugin definition.

\Drupal\ip_geoloc\Services\IpGeoLocAPI $api: API helper class.

\Drupal\Core\Extension\ModuleHandler $moduleHandler: Drupal Module Handler.

\Drupal\ip_geoloc\Services\IpGeoLocGlobal $ipGeolocGlobal: Global servicio helper.

\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: Translation class.

\Drupal\ip_geoloc\Services\IpGeoLocSession $ipGeolocSession: Session helper class.

\Drupal\ip_geoloc\Services\IpGeoLocViewsPluginStyle $viewPluginStyle: Global form parts definition class.

\Drupal\Core\Config\ConfigFactory $config_factory: Drupal configuration factory .

Overrides PluginBase::__construct

File

src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php, line 92

Class

IpGeoLocPluginStyleLeaflet
Views Style plugin extension for Leaflet (if enabled).

Namespace

Drupal\ip_geoloc\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, IpGeoLocAPI $api, ModuleHandler $moduleHandler, IpGeoLocGlobal $ipGeolocGlobal, TranslationInterface $stringTranslation, IpGeoLocSession $ipGeolocSession, IpGeoLocViewsPluginStyle $viewPluginStyle, ConfigFactory $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->api = $api;
  $this->moduleHandler = $moduleHandler;
  $this->ipGeolocGlobal = $ipGeolocGlobal;
  $this->stringTranslation = $stringTranslation;
  $this->session = $ipGeolocSession;
  $this->viewPluginStyle = $viewPluginStyle;
  $this->config = $config_factory
    ->get('ip_geoloc.settings');
}