You are here

public function MapThemerBase::__construct in Geofield Map 8.2

Constructs a Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

\Drupal\geofield_map\Services\MarkerIconService $marker_icon_service: The Marker Icon Service.

Overrides PluginBase::__construct

3 calls to MapThemerBase::__construct()
EntityTypeThemerUrl::__construct in src/Plugin/GeofieldMapThemer/EntityTypeThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.
ListFieldThemerUrl::__construct in src/Plugin/GeofieldMapThemer/ListFieldThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.
TaxonomyTermThemerUrl::__construct in src/Plugin/GeofieldMapThemer/TaxonomyTermThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.
3 methods override MapThemerBase::__construct()
EntityTypeThemerUrl::__construct in src/Plugin/GeofieldMapThemer/EntityTypeThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.
ListFieldThemerUrl::__construct in src/Plugin/GeofieldMapThemer/ListFieldThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.
TaxonomyTermThemerUrl::__construct in src/Plugin/GeofieldMapThemer/TaxonomyTermThemerUrl.php
Constructs a Drupal\Component\Plugin\PluginBase object.

File

src/MapThemerBase.php, line 297

Class

MapThemerBase
A base class for MapThemer plugins.

Namespace

Drupal\geofield_map

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $translation_manager, RendererInterface $renderer, EntityTypeManagerInterface $entity_manager, MarkerIconService $marker_icon_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configuration = $configuration;
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
  $this
    ->setStringTranslation($translation_manager);
  $this->renderer = $renderer;
  $this->entityManager = $entity_manager;
  $this->markerIcon = $marker_icon_service;
}