Skip to content

Commit d3cf004

Browse files
althausweaverryan
authored andcommitted
Added choice_loader basics
1 parent 3763f71 commit d3cf004

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/forms/types/choice.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ But don't be confused! If ``Full`` is selected (value ``0`` in HTML), ``1``
171171
will be returned in your form. If ``Almost empty`` is selected (value ``2``
172172
in HTML), ``0.1`` will be returned.
173173

174+
choice_loader
175+
~~~~~~~~~~~~~
176+
177+
.. versionadded:: 2.7
178+
179+
The ``choice_loader`` option of ChoiceType was introduced in Symfony 2.7.
180+
181+
The choice loader can be used to load the list only partially in cases where a
182+
fully-loaded list is not necessary.
183+
184+
**type**: :class:`Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface`
185+
174186
.. include:: /reference/forms/types/options/placeholder.rst.inc
175187

176188
.. include:: /reference/forms/types/options/expanded.rst.inc

0 commit comments

Comments
 (0)