Password

class Password

Provides a form element for entering a password, with hidden text.

Usage example:

$form['pass'] = array(
  '#type' => 'password',
  '#title' => $this->t('Password'),
  '#size' => 25,
);

Plugin annotation

@FormElement("password")

Hierarchy