Represents <input>
element of type "password" that lets the user to securely enter a password. Documentation:
Widget:
use Yiisoft\Form\Field\Password;
echo Password::widget()
->name('PasswordForm[old]')
->value('')
->label('Old password')
->hint('Enter your old password.')
->inputId('passwordform-old');
Result will be:
<div>
<label for="passwordform-old">Old password</label>
<input type="password" id="passwordform-old" name="PasswordForm[old]" value>
<div>Enter your old password.</div>
</div>