Skip to content

Commit

Permalink
Documented the overridden options of the "password" type
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 4, 2015
1 parent 618e11d commit 8e825d9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions reference/forms/types/password.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ The ``password`` field renders an input password text box.
+-------------+------------------------------------------------------------------------+
| Rendered as | ``input`` ``password`` field |
+-------------+------------------------------------------------------------------------+
| Overridden | - `trim`_ |
| Options | |
+-------------+------------------------------------------------------------------------+
| Options | - `always_empty`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | - `disabled`_ |
Expand All @@ -28,6 +31,19 @@ The ``password`` field renders an input password text box.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType` |
+-------------+------------------------------------------------------------------------+

Overridden Options
------------------

trim
~~~~

**default**: ``false``

Unlike the rest of form types, the ``password`` type doesn't apply the
phpfunction:`trim` function to the value submitted by the user. This ensures that
the password is merged back onto the underlying object exactly as it was typed
by the user.

Field Options
-------------

Expand Down

0 comments on commit 8e825d9

Please sign in to comment.