public function GeolocationGoogleMapInput::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 GeolocationGoogleMap::getInfo
File
- src/
Element/ GeolocationGoogleMapInput.php, line 18
Class
- GeolocationGoogleMapInput
- Provides a one-line text field form element.
Namespace
Drupal\geolocation\ElementCode
public function getInfo() {
$get_info = parent::getInfo();
unset($get_info['#pre_render']);
$get_info['#input'] = TRUE;
$get_info['#max_locations'] = 1;
$get_info['#process'] = [
[
$this,
'processMapInputElement',
],
];
$get_info['#theme_wrappers'] = [
'container',
];
$get_info['#attributes']['class'] = [
'geolocation-google-map-form-element',
];
$get_info['#attached']['library'] = [
'geolocation/geolocation.google_map_form_element',
];
return $get_info;
}