You are here

public function MapRenderEvent::getMapTargetId in farmOS 2.x

Getter method to get the map target ID.

Return value

string The map target ID.

File

modules/core/map/src/Event/MapRenderEvent.php, line 50

Class

MapRenderEvent
An event that is dispatched before rendering a map on the page.

Namespace

Drupal\farm_map\Event

Code

public function getMapTargetId() {
  return $this->element['#attributes']['id'];
}