Skip to content

Commit b1205ad

Browse files
committed
doc for form options
1 parent 19a8fae commit b1205ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: languages/php/index.rst

+9
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,14 @@ Forms
190190
* ``goto`` - Class definition
191191
* ``complete`` - Class name of doctrine namespaced entities
192192

193+
.. code-block:: php
194+
195+
# Symfony\Component\Form\FormBuilderInterface::add
196+
$builder->add('field', 'button' , array(
197+
'<option>' => ''
198+
));
199+
200+
* ``goto`` - tagged form extension with ``form.type_extension`` or ``getParent`` tree of known form_type
201+
* ``complete`` - name for option
193202

194203

0 commit comments

Comments
 (0)