public function GeolocationGoogleMap::getInfo in Geolocation Field 8
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
1 call to GeolocationGoogleMap::getInfo()
- GeolocationGoogleMapInput::getInfo in src/
Element/ GeolocationGoogleMapInput.php - Returns the element properties for this element.
1 method overrides GeolocationGoogleMap::getInfo()
- GeolocationGoogleMapInput::getInfo in src/
Element/ GeolocationGoogleMapInput.php - Returns the element properties for this element.
File
- src/
Element/ GeolocationGoogleMap.php, line 35
Class
- GeolocationGoogleMap
- Provides a render element to display a geolocation map.
Namespace
Drupal\geolocation\ElementCode
public function getInfo() {
return [
'#pre_render' => [
[
$this,
'preRenderGoogleMapElement',
],
],
'#latitude' => NULL,
'#longitude' => NULL,
'#locations' => NULL,
'#height' => NULL,
'#width' => NULL,
'#zoom' => NULL,
'#controls' => FALSE,
];
}