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