From 73f1935cdbdf8ac2fbe4091c71390ea2fb8ef57b Mon Sep 17 00:00:00 2001 From: Jules Pietri Date: Wed, 17 Feb 2016 07:13:27 +0100 Subject: [PATCH] [Form] fix `choice_label` values --- reference/forms/types/options/choice_label.rst.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/options/choice_label.rst.inc b/reference/forms/types/options/choice_label.rst.inc index 7223ba90469..345fac08f74 100644 --- a/reference/forms/types/options/choice_label.rst.inc +++ b/reference/forms/types/options/choice_label.rst.inc @@ -4,7 +4,7 @@ choice_label .. versionadded:: 2.7 The ``choice_label`` option was introduced in Symfony 2.7. -**type**: ``callable`` or ``string`` **default**: ``null`` +**type**: ``string``, ``bool``, ``callable`` or ``PropertyPath`` **default**: ``null`` Normally, the array key of each item in the ``choices`` option is used as the text that's shown to the user. The ``choice_label`` option allows you to take @@ -48,3 +48,7 @@ If your choice values are objects, then ``choice_label`` can also be a 'choices_as_values' => true, 'choice_label' => 'displayName', )); + +If set to ``false``, all the tag labels will be discarded for radio or checkbox +inputs. You can also return ``false`` from the callable to discard only the label +of the processed tag. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy