You are here

public function WebformLocationBase::getInfo in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Element/WebformLocationBase.php \Drupal\webform\Element\WebformLocationBase::getInfo()

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 WebformCompositeBase::getInfo

2 calls to WebformLocationBase::getInfo()
WebformLocationGeocomplete::getInfo in modules/webform_location_geocomplete/src/Element/WebformLocationGeocomplete.php
Returns the element properties for this element.
WebformLocationPlaces::getInfo in src/Element/WebformLocationPlaces.php
Returns the element properties for this element.
2 methods override WebformLocationBase::getInfo()
WebformLocationGeocomplete::getInfo in modules/webform_location_geocomplete/src/Element/WebformLocationGeocomplete.php
Returns the element properties for this element.
WebformLocationPlaces::getInfo in src/Element/WebformLocationPlaces.php
Returns the element properties for this element.

File

src/Element/WebformLocationBase.php, line 23

Class

WebformLocationBase
Provides a webform base element for a location element.

Namespace

Drupal\webform\Element

Code

public function getInfo() {
  return parent::getInfo() + [
    '#theme' => 'webform_composite_location',
    '#map' => FALSE,
    '#geolocation' => FALSE,
    '#hidden' => FALSE,
  ];
}