From 7f727020ee5d7dbcb2d565a9a1f70ded056db948 Mon Sep 17 00:00:00 2001 From: tabbi89 Date: Sun, 24 Sep 2017 23:08:41 +0200 Subject: [PATCH] Update label_format.rst.inc Fallow form types as Class Names! --- reference/forms/types/options/label_format.rst.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/options/label_format.rst.inc b/reference/forms/types/options/label_format.rst.inc index 45b57f3f25f..be16617d267 100644 --- a/reference/forms/types/options/label_format.rst.inc +++ b/reference/forms/types/options/label_format.rst.inc @@ -14,11 +14,11 @@ to a field. To avoid duplicated keyword messages, you can configure the label format to a static value, like:: // ... - $profileFormBuilder->add('address', new AddressType(), array( + $profileFormBuilder->add('address', AddressType::class, array( 'label_format' => 'form.address.%name%', )); - $invoiceFormBuilder->add('invoice', new AddressType(), array( + $invoiceFormBuilder->add('invoice', AddressType::class, array( 'label_format' => 'form.address.%name%', ));