@@ -275,17 +275,17 @@ you can pass the class name and the method as an array.
275
275
Available Options
276
276
-----------------
277
277
278
- callback
279
- ~~~~~~~~
278
+ `` callback ``
279
+ ~~~~~~~~~~~~
280
280
281
281
**type **: ``string|array|Closure ``
282
282
283
283
This is a callback method that can be used instead of the `choices `_ option
284
284
to return the choices array. See
285
285
`Supplying the Choices with a Callback Function `_ for details on its usage.
286
286
287
- choices
288
- ~~~~~~~
287
+ `` choices ``
288
+ ~~~~~~~~~~~
289
289
290
290
**type **: ``array `` [:ref: `default option <validation-default-option >`]
291
291
@@ -295,8 +295,8 @@ will be matched against this array.
295
295
296
296
.. include :: /reference/constraints/_groups-option.rst.inc
297
297
298
- max
299
- ~~~
298
+ `` max ``
299
+ ~~~~~~~
300
300
301
301
**type **: ``integer ``
302
302
@@ -305,8 +305,8 @@ to force no more than XX number of values to be selected. For example, if
305
305
``max `` is 3, but the input array contains 4 valid items, the validation
306
306
will fail.
307
307
308
- maxMessage
309
- ~~~~~~~~~~
308
+ `` maxMessage ``
309
+ ~~~~~~~~~~~~~~
310
310
311
311
**type **: ``string `` **default **: ``You must select at most {{ limit }} choices. ``
312
312
@@ -326,8 +326,8 @@ Parameter Description
326
326
327
327
The ``{{ choices }} `` parameter was introduced in Symfony 4.3.
328
328
329
- message
330
- ~~~~~~~
329
+ `` message ``
330
+ ~~~~~~~~~~~
331
331
332
332
**type **: ``string `` **default **: ``The value you selected is not a valid choice. ``
333
333
@@ -344,8 +344,8 @@ Parameter Description
344
344
``{{ value }} `` The current (invalid) value
345
345
================= ============================================================
346
346
347
- min
348
- ~~~
347
+ `` min ``
348
+ ~~~~~~~
349
349
350
350
**type **: ``integer ``
351
351
@@ -354,8 +354,8 @@ to force at least XX number of values to be selected. For example, if
354
354
``min `` is 3, but the input array only contains 2 valid items, the validation
355
355
will fail.
356
356
357
- minMessage
358
- ~~~~~~~~~~
357
+ `` minMessage ``
358
+ ~~~~~~~~~~~~~~
359
359
360
360
**type **: ``string `` **default **: ``You must select at least {{ limit }} choices. ``
361
361
@@ -375,8 +375,8 @@ Parameter Description
375
375
376
376
The ``{{ choices }} `` parameter was introduced in Symfony 4.3.
377
377
378
- multiple
379
- ~~~~~~~~
378
+ `` multiple ``
379
+ ~~~~~~~~~~~~
380
380
381
381
**type **: ``boolean `` **default **: ``false ``
382
382
@@ -385,8 +385,8 @@ of a single, scalar value. The constraint will check that each value of
385
385
the input array can be found in the array of valid choices. If even one
386
386
of the input values cannot be found, the validation will fail.
387
387
388
- multipleMessage
389
- ~~~~~~~~~~~~~~~
388
+ `` multipleMessage ``
389
+ ~~~~~~~~~~~~~~~~~~~
390
390
391
391
**type **: ``string `` **default **: ``One or more of the given values is invalid. ``
392
392
0 commit comments