8000 [Form] Document CollectionType's `prototype_data` · symfony/symfony-docs@a77a4b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit a77a4b5

Browse files
kgildenwouterj
authored andcommitted
[Form] Document CollectionType's prototype_data
1 parent 282602e commit a77a4b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/forms/types/collection.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ photos).
2020
| | - `entry_options`_ |
2121
| | - `entry_type`_ |
2222
| | - `prototype`_ |
23+
| | - `prototype_data`_ |
2324
| | - `prototype_name`_ |
2425
+-------------+-----------------------------------------------------------------------------+
2526
| Inherited | - `by_reference`_ |
@@ -363,6 +364,14 @@ rendering your form, having the entire "form row" may be easier for you.
363364
For details on how to actually use this option, see the above example as
364365
well as :ref:`cookbook-form-collections-new-prototype`.
365366

367+
prototype_data
368+
~~~~~~~~~~~~~~
369+
370+
**type**: ``mixed`` **default**: ``null``
371+
372+
Allows you to specify data for the prototype. Each new row added will initially
373+
contain the data set by this option.
374+
366375
prototype_name
367376
~~~~~~~~~~~~~~
368377

0 commit comments

Comments
 (0)
0