Skip to content

Commit

Permalink
Added choice_loader basics
Browse files Browse the repository at this point in the history
  • Loading branch information
althaus authored and weaverryan committed Nov 11, 2015
1 parent 3763f71 commit d3cf004
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ But don't be confused! If ``Full`` is selected (value ``0`` in HTML), ``1``
will be returned in your form. If ``Almost empty`` is selected (value ``2``
in HTML), ``0.1`` will be returned.

choice_loader
~~~~~~~~~~~~~

.. versionadded:: 2.7

The ``choice_loader`` option of ChoiceType was introduced in Symfony 2.7.

The choice loader can be used to load the list only partially in cases where a
fully-loaded list is not necessary.

**type**: :class:`Symfony\\Component\\Form\\ChoiceList\\Loader\\ChoiceLoaderInterface`

.. include:: /reference/forms/types/options/placeholder.rst.inc

.. include:: /reference/forms/types/options/expanded.rst.inc
Expand Down

0 comments on commit d3cf004

Please sign in to comment.