You are here

public function LeafletAjaxPopupController::__construct in Leaflet 2.0.x

Same name and namespace in other branches
  1. 8 modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::__construct()
  2. 2.1.x modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php \Drupal\leaflet_views\Controller\LeafletAjaxPopupController::__construct()

Constructs a new LeafletAjaxPopupController object.

Parameters

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

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

File

modules/leaflet_views/src/Controller/LeafletAjaxPopupController.php, line 41

Class

LeafletAjaxPopupController
Default controller for the leaflet_views_ajax_popup module.

Namespace

Drupal\leaflet_views\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_manager, RendererInterface $renderer) {
  $this->entityManager = $entity_manager;
  $this->renderer = $renderer;
}