3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add a getter method for the mapType property of the MapRenderEvent.

This commit is contained in:
paul121 2020-12-14 09:48:05 -08:00 committed by Michael Stenta
parent bb20abc22f
commit 9e3c81c70f

View file

@ -26,7 +26,7 @@ class MapRenderEvent extends Event {
*
* @var \Drupal\farm_map\Entity\MapTypeInterface
*/
public $mapType;
private $mapType;
/**
* MapRenderEvent constructor.
@ -41,6 +41,16 @@ class MapRenderEvent extends Event {
$this->mapType = $map_type;
}
/**
* Getter method to get the map type being rendered.
*
* @return \Drupal\farm_map\Entity\MapTypeInterface
* The map type config entity.
*/
public function getMapType() {
return $this->mapType;
}
/**
* Add behavior to the map.
*