public function CardNumber::getInfo in Creditfield Form Element 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 ElementInterface::getInfo
File
- src/
Element/ CardNumber.php, line 19
Class
- CardNumber
- Provides a one-line credit card number field form element.
Namespace
Drupal\creditfield\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#size' => 60,
'#maxlength' => 16,
'#autocomplete_route_name' => FALSE,
'#element_validate' => [
[
$class,
'validateCardNumber',
],
],
'#process' => [
[
$class,
'processCardNumber',
],
],
'#pre_render' => [
[
$class,
'preRenderCardNumber',
],
],
'#theme' => 'input__textfield',
'#theme_wrappers' => [
'form_element',
],
];
}