function Tel::getInfo
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Render/Element/Tel.php \Drupal\Core\Render\Element\Tel::getInfo()
- 10 core/lib/Drupal/Core/Render/Element/Tel.php \Drupal\Core\Render\Element\Tel::getInfo()
- 11.x core/lib/Drupal/Core/Render/Element/Tel.php \Drupal\Core\Render\Element\Tel::getInfo()
Overrides ElementInterface::getInfo
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ Tel.php, line 35
Class
- Tel
- Provides a form element for entering a telephone number.
Namespace
Drupal\Core\Render\ElementCode
public function getInfo() {
$class = static::class;
return [
'#input' => TRUE,
'#size' => 30,
'#maxlength' => 128,
'#autocomplete_route_name' => FALSE,
'#process' => [
[
$class,
'processAutocomplete',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processPattern',
],
],
'#pre_render' => [
[
$class,
'preRenderTel',
],
],
'#theme' => 'input__tel',
'#theme_wrappers' => [
'form_element',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.