public function CpfElement::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/ CpfElement.php, line 13
Class
- CpfElement
- Plugin annotation @FormElement("brazilian_ids_cpf");
Namespace
Drupal\brazilian_ids\ElementCode
public function getInfo() {
$info = parent::getInfo();
$info['#maxlength'] = 14;
return $info;
}