You are here

public function YamlFormLocation::getInfo in YAML Form 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 YamlFormCompositeBase::getInfo

File

src/Element/YamlFormLocation.php, line 17

Class

YamlFormLocation
Provides a form element for a location element.

Namespace

Drupal\yamlform\Element

Code

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