File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ The ``password`` field renders an input password text box.
9
9
+-------------+------------------------------------------------------------------------+
10
10
| Rendered as | ``input `` ``password `` field |
11
11
+-------------+------------------------------------------------------------------------+
12
+ | Overridden | - `trim `_ |
13
+ | Options | |
14
+ +-------------+------------------------------------------------------------------------+
12
15
| Options | - `always_empty `_ |
13
16
+-------------+------------------------------------------------------------------------+
14
17
| Inherited | - `disabled `_ |
@@ -28,6 +31,19 @@ The ``password`` field renders an input password text box.
28
31
| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ PasswordType ` |
29
32
+-------------+------------------------------------------------------------------------+
30
33
34
+ Overridden Options
35
+ ------------------
36
+
37
+ trim
38
+ ~~~~
39
+
40
+ **default **: ``false ``
41
+
42
+ Unlike the rest of form types, the ``password `` type doesn't apply the
43
+ phpfunction:`trim ` function to the value submitted by the user. This ensures that
44
+ the password is merged back onto the underlying object exactly as it was typed
45
+ by the user.
46
+
31
47
Field Options
32
48
-------------
33
49
You can’t perform that action at this time.
0 commit comments