You are here

public function GeofieldGoogleMapViewStyle::__construct in Geofield Map 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/style/GeofieldGoogleMapViewStyle.php \Drupal\geofield_map\Plugin\views\style\GeofieldGoogleMapViewStyle::__construct()

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

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

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

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

\Drupal\geofield\GeoPHP\GeoPHPInterface $geophp_wrapper: The The geoPhpWrapper.

\Drupal\Core\Session\AccountInterface $current_user: Current user service.

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

Overrides PluginBase::__construct

File

src/Plugin/views/style/GeofieldGoogleMapViewStyle.php, line 147

Class

GeofieldGoogleMapViewStyle
Style plugin to render a View output as a Leaflet map.

Namespace

Drupal\geofield_map\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_manager, EntityFieldManagerInterface $entity_field_manager, EntityDisplayRepositoryInterface $entity_display, LinkGeneratorInterface $link_generator, GeoPHPInterface $geophp_wrapper, AccountInterface $current_user, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityManager = $entity_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityDisplay = $entity_display;
  $this->config = $config_factory;
  $this->link = $link_generator;
  $this->geoPhpWrapper = $geophp_wrapper;
  $this->currentUser = $current_user;
  $this->renderer = $renderer;
}