How to create password input type in Symfony EasyAdmin 3

5.1k views Asked by At

How do I create password input type in Symfony EasyAdmin 3 admin form. In EasyAdmin 2 I could use - { property: ..., type: 'password' } What is EasyAdmin 3 version of this?

1

There are 1 answers

4
Flash On BEST ANSWER

Use text field and set form type to PasswordType

yield TextField::new('password')->setFormType(PasswordType::class);