public function ZoneTerritory::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/ ZoneTerritory.php, line 38
Class
- ZoneTerritory
- Provides a zone territory 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' => [],
'#input' => TRUE,
'#multiple' => FALSE,
'#default_value' => NULL,
'#process' => [
[
$class,
'processTerritory',
],
[
$class,
'processGroup',
],
],
'#element_validate' => [
[
$class,
'validatePostalCodeElements',
],
],
'#pre_render' => [
[
$class,
'preRenderGroup',
],
],
'#after_build' => [
[
$class,
'clearValues',
],
],
'#theme_wrappers' => [
'container',
],
];
}