You are here

public function CnpjElement::getInfo in Brazilian IDs 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 CpfCnpjBase::getInfo

File

src/Element/CnpjElement.php, line 13

Class

CnpjElement
Plugin annotation @FormElement("brazilian_ids_cnpj");

Namespace

Drupal\brazilian_ids\Element

Code

public function getInfo() {
  $info = parent::getInfo();
  $info['#maxlength'] = 18;
  return $info;
}