You are here

public function GeofieldMapLegend::__construct in Geofield Map 8.2

Creates a LocalActionsBlock instance.

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\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\Session\AccountInterface $current_user: The Current User.

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The Link Generator service.

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

\Drupal\geofield_map\MapThemerPluginManager $map_themer_manager: The mapThemerManager service.

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

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/GeofieldMapLegend.php, line 161

Class

GeofieldMapLegend
Provides a custom Geofield Map Legend block.

Namespace

Drupal\geofield_map\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, AccountInterface $current_user, LinkGeneratorInterface $link_generator, RendererInterface $renderer, MapThemerPluginManager $map_themer_manager, MarkerIconService $marker_icon_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->config = $config_factory;
  $this->currentUser = $current_user;
  $this->link = $link_generator;
  $this->renderer = $renderer;
  $this->mapThemerManager = $map_themer_manager;
  $this->markerIcon = $marker_icon_service;
}