Skip to content

Commit 7a91823

Browse files
committed
Fix lint and build errors
- Remove deprecated ``.. index::`` directive - Fix title underline lengths to match title text - Fix invalid reference ``reference-form-choice-value`` (label does not exist)
1 parent 1db92e7 commit 7a91823

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

form/create_custom_choice_type.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
.. index::
2-
single: Form; Custom choice type
3-
41
How to Create a Custom Choice Field Type
5-
=========================================
2+
========================================
63

74
The :doc:`ChoiceType </reference/forms/types/choice>` is one of the most
85
powerful form types in Symfony. When you need to reuse the same set of choices
@@ -121,7 +118,7 @@ to ensure a separate cache entry per combination::
121118
}
122119

123120
Creating a Custom Choice Loader
124-
--------------------------------
121+
-------------------------------
125122

126123
When the loading logic is too complex for a simple callback, implement a
127124
dedicated choice loader. The easiest way is to extend
@@ -164,7 +161,7 @@ methods:
164161

165162
``doLoadValuesForChoices(array $choices)``
166163
Returns the string values for the given choices. This is an alternative to
167-
the :ref:`choice_value <reference-form-choice-value>` option.
164+
the ``choice_value`` option.
168165

169166
::
170167

@@ -217,7 +214,7 @@ caching::
217214
}
218215

219216
Using ``choice_lazy`` for Large Datasets
220-
-----------------------------------------
217+
----------------------------------------
221218

222219
When dealing with a very large number of choices (e.g. thousands of users),
223220
rendering them all in a ``<select>`` element is impractical. Set the

0 commit comments

Comments
 (0)