public function LoqatePcaAddress::getInfo in Loqate 8
Same name and namespace in other branches
- 2.x src/Element/LoqatePcaAddress.php \Drupal\loqate\Element\LoqatePcaAddress::getInfo()
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/ LoqatePcaAddress.php, line 50
Class
- LoqatePcaAddress
- Provides a standalone Loqate PCA address form element.
Namespace
Drupal\loqate\ElementCode
public function getInfo() {
$class = get_class($this);
return $this
->buildElementGetInfo() + [
'#process' => [
[
$class,
'processAddress',
],
[
$class,
'processPcaAddress',
],
],
'#element_validate' => [
[
$class,
'validateAddress',
],
],
'#attached' => [
'library' => [
'loqate/element.pca_address.address.js',
],
],
'#theme_wrappers' => [
'container',
],
];
}