Skip to content

Commit 510db88

Browse files
committed
[Reference] [Forms] [Types] [choiceType] preferred_choices, change in code example
1 parent 8a08015 commit 510db88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
$builder->add('foo_choices', 'choice', array(
1010
'choices' => array('foo' => 'Foo', 'bar' => 'Bar', 'baz' => 'Baz'),
11-
'preferred_choices' => array('baz' => 'Baz'),
11+
'preferred_choices' => array('baz'),
1212
));
1313

1414
Note that preferred choices are only meaningful when rendering as a
@@ -25,4 +25,4 @@
2525

2626
.. code-block:: php
2727

28-
<?php echo $view['form']->widget($form['foo_choices'], array('separator' => '=====')) ?>
28+
<?php echo $view['form']->widget($form['foo_choices'], array('separator' => '=====')) ?>

0 commit comments

Comments
 (0)