You are here

public function AddressPcaAddress::getInfo in Loqate 8

Same name and namespace in other branches
  1. 2.x modules/pca_address/src/Element/AddressPcaAddress.php \Drupal\pca_address\Element\AddressPcaAddress::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 Address::getInfo

File

modules/pca_address/src/Element/AddressPcaAddress.php, line 49

Class

AddressPcaAddress
Provides an advanced PCA address form element.

Namespace

Drupal\pca_address\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $info['#process'][] = [
    get_class($this),
    'processPcaAddress',
  ];
  $info['#attached']['library'][] = 'loqate/element.pca_address.address.js';
  return $this
    ->buildElementGetInfo() + $info;
}