diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index d2c79145479..df65b75f8de 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -327,7 +327,7 @@ well as :ref:`cookbook-form-collections-new-prototype`. prototype_name ~~~~~~~~~~~~~~ -**type**: ``String`` **default**: ``__name__`` +**type**: ``string`` **default**: ``__name__`` If you have several collections in your form, or worse, nested collections you may want to change the placeholder so that unrelated placeholders are diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index f46229083fe..391fbcc4c84 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -183,7 +183,7 @@ directly. choices ~~~~~~~ -**type**: array | ``\Traversable`` **default**: ``null`` +**type**: ``array`` | ``\Traversable`` **default**: ``null`` Instead of allowing the `class`_ and `query_builder`_ options to fetch the entities to include for you, you can pass the ``choices`` option directly. diff --git a/reference/forms/types/options/attr.rst.inc b/reference/forms/types/options/attr.rst.inc index 03a13d4b9b6..bbee5888a4a 100644 --- a/reference/forms/types/options/attr.rst.inc +++ b/reference/forms/types/options/attr.rst.inc @@ -1,7 +1,7 @@ attr ~~~~ -**type**: array **default**: Empty array +**type**: ``array`` **default**: ``array()`` If you want to add extra attributes to an HTML field representation you can use the ``attr`` option. It's an associative array with HTML attributes diff --git a/reference/forms/types/options/button_attr.rst.inc b/reference/forms/types/options/button_attr.rst.inc index fe1d7fde82b..20265677042 100644 --- a/reference/forms/types/options/button_attr.rst.inc +++ b/reference/forms/types/options/button_attr.rst.inc @@ -1,7 +1,7 @@ attr ~~~~ -**type**: array **default**: Empty array +**type**: ``array`` **default**: ``array()`` If you want to add extra attributes to the HTML representation of the button, you can use ``attr`` option. It's an associative array with HTML attribute diff --git a/reference/forms/types/options/constraints.rst.inc b/reference/forms/types/options/constraints.rst.inc index 0a09d94be4b..fa48dfb4cf1 100644 --- a/reference/forms/types/options/constraints.rst.inc +++ b/reference/forms/types/options/constraints.rst.inc @@ -1,7 +1,7 @@ constraints ~~~~~~~~~~~ -**type**: array or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null`` +**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null`` Allows you to attach one or more validation constraints to a specific field. For more information, see :ref:`Adding Validation`. diff --git a/reference/forms/types/options/error_mapping.rst.inc b/reference/forms/types/options/error_mapping.rst.inc index dafd5e04248..5be15490508 100644 --- a/reference/forms/types/options/error_mapping.rst.inc +++ b/reference/forms/types/options/error_mapping.rst.inc @@ -4,7 +4,7 @@ error_mapping .. versionadded:: 2.1 The ``error_mapping`` option was introduced in Symfony 2.1. -**type**: ``array`` **default**: ``empty`` +**type**: ``array`` **default**: ``array()`` This option allows you to modify the target of a validation error. 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