File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -662,9 +662,7 @@ field whose *id* is ``product_name`` (and name is ``product[name]``).
662
662
663
663
If you want to change the ``product `` or ``name `` portion of the block
664
664
name ``_product_name_widget `` you can set the ``block_name `` option in your
665
- form type:
666
-
667
- .. code-block :: php
665
+ form type::
668
666
669
667
use Symfony\Component\Form\FormBuilderInterface;
670
668
@@ -673,11 +671,11 @@ field whose *id* is ``product_name`` (and name is ``product[name]``).
673
671
// ...
674
672
675
673
$builder->add('name', 'text', array(
676
- 'block_name' => 'custom_name'
674
+ 'block_name' => 'custom_name',
677
675
));
678
676
}
679
677
680
- The block name can then be ``_product_custom_name_widget ``
678
+ Then the block name will be ``_product_custom_name_widget ``.
681
679
682
680
You can also override the markup for an entire field row using the same method:
683
681
You can’t perform that action at this time.
0 commit comments