public function PhoneInternationalElement::getInfo in International Phone 8
Same name and namespace in other branches
- 8.2 src/Element/PhoneInternationalElement.php \Drupal\phone_international\Element\PhoneInternationalElement::getInfo()
- 3.x src/Element/PhoneInternationalElement.php \Drupal\phone_international\Element\PhoneInternationalElement::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 ElementInterface::getInfo
File
- src/
Element/ PhoneInternationalElement.php, line 98
Class
- PhoneInternationalElement
- Provides a phone_international form.
Namespace
Drupal\phone_international\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#size' => 30,
'#maxlength' => 128,
'#process' => [
[
$class,
'processAutocomplete',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processPattern',
],
],
'#element_validate' => [
[
$class,
'validateNumber',
],
],
'#pre_render' => [
[
$class,
'preRenderInternationalPhone',
],
],
'#theme' => 'input__tel',
'#theme_wrappers' => [
'form_element',
],
];
}