Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 512d5eb

Browse filesBrowse files
committed
[Form customization] fixed minor typos
1 parent e423118 commit 512d5eb
Copy full SHA for 512d5eb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed

‎cookbook/form/form_customization.rst

Copy file name to clipboardExpand all lines: cookbook/form/form_customization.rst
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -662,9 +662,7 @@ field whose *id* is ``product_name`` (and name is ``product[name]``).
662662

663663
If you want to change the ``product`` or ``name`` portion of the block
664664
name ``_product_name_widget`` you can set the ``block_name`` option in your
665-
form type:
666-
667-
.. code-block:: php
665+
form type::
668666

669667
use Symfony\Component\Form\FormBuilderInterface;
670668

@@ -673,11 +671,11 @@ field whose *id* is ``product_name`` (and name is ``product[name]``).
673671
// ...
674672

675673
$builder->add('name', 'text', array(
676-
'block_name' => 'custom_name'
674+
'block_name' => 'custom_name',
677675
));
678676
}
679677

680-
The block name can then be ``_product_custom_name_widget``
678+
Then the block name will be ``_product_custom_name_widget``.
681679

682680
You can also override the markup for an entire field row using the same method:
683681

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.