public function LeafletGeojson::__construct in Leaflet GeoJSON 8
Constructs a LeafletGeojson object.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ LeafletGeojson.php, line 40
Class
- LeafletGeojson
- Provides a 'Leaflet Geojson' Block.
Namespace
Drupal\leaflet_geojson\Plugin\BlockCode
public function __construct($configuration, $plugin_id, $plugin_definition, ModuleHandlerInterface $module_handler, LeafletService $leaflet_service) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
$this->leafletService = $leaflet_service;
}