You are here

public function LeafletDemoForm::__construct in Leaflet More Maps 8

Same name and namespace in other branches
  1. 2.1.x leaflet_demo/src/Form/LeafletDemoForm.php \Drupal\leaflet_demo\Form\LeafletDemoForm::__construct()

LeafletDemoPage constructor.

Parameters

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

\Drupal\Core\Render\Renderer $renderer: The drupal render service.

File

leaflet_demo/src/Form/LeafletDemoForm.php, line 51

Class

LeafletDemoForm
Class LeafletDemoForm.

Namespace

Drupal\leaflet_demo\Form

Code

public function __construct(LeafletService $leaflet_service, Renderer $renderer) {
  $this->leafletService = $leaflet_service;
  $this->renderer = $renderer;
}