public function Address::getInfo in Address 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/ Address.php, line 57
Class
- Address
- Provides an address form element.
Namespace
Drupal\address\ElementCode
public function getInfo() {
$class = get_class($this);
return [
// List of country codes. If empty, all countries will be available.
'#available_countries' => [],
// FieldOverride constants keyed by AddressField constants.
'#field_overrides' => [],
// Deprecated. Use #field_overrides instead.
'#used_fields' => [],
'#input' => TRUE,
'#multiple' => FALSE,
'#default_value' => NULL,
'#process' => [
[
$class,
'processAddress',
],
[
$class,
'processGroup',
],
],
'#pre_render' => [
[
$class,
'groupElements',
],
[
$class,
'preRenderGroup',
],
],
'#after_build' => [
[
$class,
'clearValues',
],
],
'#attached' => [
'library' => [
'address/form',
],
],
'#theme_wrappers' => [
'container',
],
];
}