public function MapRenderEvent::__construct in farmOS 2.x
MapRenderEvent constructor.
Parameters
\Drupal\farm_map\Entity\MapTypeInterface $map_type: The farm_map render element.
array $element: The farm_map render array.
File
- modules/
core/ map/ src/ Event/ MapRenderEvent.php, line 39
Class
- MapRenderEvent
- An event that is dispatched before rendering a map on the page.
Namespace
Drupal\farm_map\EventCode
public function __construct(MapTypeInterface $map_type, array $element) {
$this->element = $element;
$this->mapType = $map_type;
}