public function Zone::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/ Zone.php, line 41
Class
- Zone
- Provides a zone form element.
Namespace
Drupal\address\ElementCode
public function getInfo() {
$class = get_called_class();
return [
'#show_label_field' => FALSE,
// List of country codes. If empty, all countries will be available.
'#available_countries' => [],
'#input' => TRUE,
'#multiple' => FALSE,
'#default_value' => NULL,
'#process' => [
[
$class,
'processZone',
],
[
$class,
'processGroup',
],
],
'#element_validate' => [
[
$class,
'validateZone',
],
],
'#theme_wrappers' => [
'container',
],
];
}