You are here

public function MarkerDefault::__construct in Leaflet 8

Same name and namespace in other branches
  1. 2.1.x modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php \Drupal\leaflet_views\Plugin\views\style\MarkerDefault::__construct()
  2. 2.0.x modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php \Drupal\leaflet_views\Plugin\views\style\MarkerDefault::__construct()

Constructs a MarkerDefault instance.

Parameters

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

string $plugin_id: The plugin_id for the formatter.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The modules handler.

Overrides PluginBase::__construct

File

modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php, line 75

Class

MarkerDefault
Style plugin to render leaflet markers.

Namespace

Drupal\leaflet_views\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->moduleHandler = $module_handler;
}