You are here

public function LeafletMarker::__construct in Leaflet 8

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

Constructs a LeafletMap style 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\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display: The entity display manager.

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

\Drupal\Views\ViewsData $view_data: The view data.

\Drupal\Leaflet\LeafletService $leaflet_service: The Leaflet service.

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.

Overrides PluginBase::__construct

File

modules/leaflet_views/src/Plugin/views/row/LeafletMarker.php, line 146

Class

LeafletMarker
Plugin which formats a row as a leaflet marker.

Namespace

Drupal\leaflet_views\Plugin\views\row

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, LanguageManagerInterface $language_manager, EntityFieldManagerInterface $entity_field_manager, EntityDisplayRepositoryInterface $entity_display, RendererInterface $renderer, ViewsData $view_data, LeafletService $leaflet_service, FieldTypePluginManagerInterface $field_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityManager = $entity_manager;
  $this->languageManager = $language_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityDisplay = $entity_display;
  $this->renderer = $renderer;
  $this->viewsData = $view_data;
  $this->leafletService = $leaflet_service;
  $this->fieldTypeManager = $field_type_manager;
}