public function AssociativeArray::getInfo in Map Widget 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
File
- src/
Element/ AssociativeArray.php, line 37
Class
- AssociativeArray
- Class KeyValuePair provides a form element for entering paired values.
Namespace
Drupal\map_widget\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#count' => 1,
'#size' => 60,
'#key_placeholder' => NULL,
'#value_placeholder' => NULL,
'#process' => [
[
$class,
'processAssociativeArray',
],
],
'#element_validate' => [
[
$class,
'validateAssociativeArray',
],
],
'#theme_wrappers' => [
'fieldset',
],
];
}