You are here

public function UcAddress::getInfo in Ubercart 8.4

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

uc_store/src/Element/UcAddress.php, line 21

Class

UcAddress
Provides a form element for Ubercart address input.

Namespace

Drupal\uc_store\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#required' => TRUE,
    '#hide' => [],
    '#process' => [
      [
        $class,
        'processAddress',
      ],
    ],
    '#attributes' => [
      'class' => [
        'uc-store-address-field',
      ],
    ],
    '#theme_wrappers' => [
      'container',
    ],
    '#hidden' => FALSE,
  ];
}