Skip to content

Commit 03fdc5b

Browse files
committed
Reviewed form type options includes
1 parent ffe2b15 commit 03fdc5b

30 files changed

+105
-92
lines changed

reference/forms/types/options/action.rst.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ action
66

77
**type**: ``string`` **default**: empty string
88

9-
This option specifies where to send the form's data on submission (usually a
10-
URI). Its value is rendered as the ``action`` attribute of the ``form``
11-
element. An empty value is considered a same-document reference, i.e. the form
12-
will be submitted to the same URI that rendered the form.
9+
This option specifies where to send the form's data on submission (usually
10+
a URI). Its value is rendered as the ``action`` attribute of the ``form``
11+
element. An empty value is considered a same-document reference, i.e. the
12+
form will be submitted to the same URI that rendered the form.

reference/forms/types/options/auto_initialize.rst.inc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ auto_initialize
44
**type**: ``boolean`` **default**: ``true``
55

66
An internal option: sets whether the form should be initialized automatically.
7-
For all fields, this option should only be ``true`` for root forms. You won't
8-
need to change this option and probably won't need to worry about it.
7+
For all fields, this option should only be ``true`` for root forms. You
8+
won't need to change this option and probably won't need to worry about
9+
it.

reference/forms/types/options/block_name.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
block_name
2-
~~~~~~~~~~~
2+
~~~~~~~~~~
33

44
**type**: ``string`` **default**: the form's name (see :ref:`Knowing which
55
block to customize <cookbook-form-customization-sidebar>`)

reference/forms/types/options/button_label.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ label
33

44
**type**: ``string`` **default**: The label is "guessed" from the field name
55

6-
Sets the label that will be displayed on the button. The label can also be
7-
directly set inside the template:
6+
Sets the label that will be displayed on the button. The label can also
7+
be directly set inside the template:
88

99
.. configuration-block::
1010

reference/forms/types/options/by_reference.rst.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ So, all that ``by_reference=false`` really does is force the framework to
4040
call the setter on the parent object.
4141

4242
Similarly, if you're using the :doc:`collection</reference/forms/types/collection>`
43-
form type where your underlying collection data is an object (like with Doctrine's
44-
``ArrayCollection``), then ``by_reference`` must be set to ``false`` if you
45-
need the adder and remover (e.g. ``addAuthor()`` and ``removeAuthor()``) to be called.
43+
form type where your underlying collection data is an object (like with
44+
Doctrine's ``ArrayCollection``), then ``by_reference`` must be set to ``false``
45+
if you need the adder and remover (e.g. ``addAuthor()`` and ``removeAuthor()``)
46+
to be called.

reference/forms/types/options/cascade_validation.rst.inc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ the data from ``CategoryType`` to also be validated.
1111
.. tip::
1212

1313
Instead of using this option, it is recommended that you use the ``Valid``
14-
constraint in your model to force validation on a child object stored on
15-
a property. This cascades only the validation but not the use of the
16-
``validation_group`` option on child forms. You can read more about this
17-
in the section about :ref:`Embedding a Single Object <forms-embedding-single-object>`.
14+
constraint in your model to force validation on a child object stored
15+
on a property. This cascades only the validation but not the use of
16+
the ``validation_group`` option on child forms. You can read more
17+
about this in the section about
18+
:ref:`Embedding a Single Object <forms-embedding-single-object>`.
1819

1920
.. include:: /reference/forms/types/options/_error_bubbling_hint.rst.inc

reference/forms/types/options/compound.rst.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ compound
33

44
**type**: ``boolean`` **default**: ``true``
55

6-
This option specifies if a form is compound. This is independent of whether the
7-
form actually has children. A form can be compound but not have any children
8-
at all (e.g. an empty collection form).
6+
This option specifies if a form is compound. This is independent of whether
7+
the form actually has children. A form can be compound but not have any
8+
children at all (e.g. an empty collection form).

reference/forms/types/options/data.rst.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ data
55

66
When you create a form, each field initially displays the value of the
77
corresponding property of the form's domain object (if an object is bound
8-
to the form). If you want to override the initial value for the form or just
9-
an individual field, you can set it in the data option::
8+
to the form). If you want to override the initial value for the form or
9+
just an individual field, you can set it in the data option::
1010

1111
$builder->add('token', 'hidden', array(
1212
'data' => 'abcdef',
1313
));
1414

1515
.. note::
1616

17-
The default values for form fields are taken directly from the
18-
underlying data structure (e.g. an entity or an array).
19-
The ``data`` option overrides this default value.
17+
The default values for form fields are taken directly from the underlying
18+
data structure (e.g. an entity or an array). The ``data`` option overrides
19+
this default value.

reference/forms/types/options/data_class.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ data_class
33

44
**type**: ``string``
55

6-
This option is used to set the appropriate data mapper to be used by the form,
7-
so you can use it for any form field type which requires an object.
6+
This option is used to set the appropriate data mapper to be used by the
7+
form, so you can use it for any form field type which requires an object.
88

99
.. code-block:: php
1010

reference/forms/types/options/date_format.rst.inc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ format
44
**type**: ``integer`` or ``string`` **default**: `IntlDateFormatter::MEDIUM`_
55
(or ``yyyy-MM-dd`` if `widget`_ is ``single_text``)
66

7-
Option passed to the ``IntlDateFormatter`` class, used to transform user input
8-
into the proper format. This is critical when the `widget`_ option is
9-
set to ``single_text``, and will define how the user will input the data.
7+
Option passed to the ``IntlDateFormatter`` class, used to transform user
8+
input into the proper format. This is critical when the `widget`_ option
9+
is set to ``single_text`` and will define how the user will input the data.
1010
By default, the format is determined based on the current user locale: meaning
11-
that *the expected format will be different for different users*. You
12-
can override it by passing the format as a string.
11+
that *the expected format will be different for different users*. You can
12+
override it by passing the format as a string.
1313

1414
For more information on valid formats, see `Date/Time Format Syntax`_::
1515

@@ -21,9 +21,10 @@ For more information on valid formats, see `Date/Time Format Syntax`_::
2121

2222
.. note::
2323

24-
If you want your field to be rendered as an HTML5 "date" field, you have to
25-
use a ``single_text`` widget with the ``yyyy-MM-dd`` format (the `RFC 3339`_
26-
format) which is the default value if you use the ``single_text`` widget.
24+
If you want your field to be rendered as an HTML5 "date" field, you
25+
have to use a ``single_text`` widget with the ``yyyy-MM-dd`` format
26+
(the `RFC 3339`_ format) which is the default value if you use the
27+
``single_text`` widget.
2728

2829
.. _`Date/Time Format Syntax`: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax
2930
.. _`IntlDateFormatter::MEDIUM`: http://www.php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants

0 commit comments

Comments
 (0)