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 3b17629

Browse filesBrowse files
tabbi89xabbuh
authored andcommitted
Update label_format.rst.inc
Fallow form types as Class Names!
1 parent ff14bc5 commit 3b17629
Copy full SHA for 3b17629

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎reference/forms/types/options/label_format.rst.inc

Copy file name to clipboardExpand all lines: reference/forms/types/options/label_format.rst.inc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ to a field. To avoid duplicated keyword messages, you can configure the label
1414
format to a static value, like::
1515
1616
// ...
17-
$profileFormBuilder->add('address', new AddressType(), array(
17+
$profileFormBuilder->add('address', AddressType::class, array(
1818
'label_format' => 'form.address.%name%',
1919
));
2020
21-
$invoiceFormBuilder->add('invoice', new AddressType(), array(
21+
$invoiceFormBuilder->add('invoice', AddressType::class, array(
2222
'label_format' => 'form.address.%name%',
2323
));
2424

0 commit comments

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