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:
parent
bb20abc22f
commit
9e3c81c70f
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue