Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface::getPreferredViews
Returns the choice views of the preferred choices as nested array with the choice groups as top-level keys.
Example: <source> array( 'Group 1' => array( 10 => ChoiceView object, 20 => ChoiceView object, ), 'Group 2' => array( 30 => ChoiceView object, ), ) </source>
Signature
public function getPreferredViews()
Returns
- array
- A nested array containing the views with the corresponding
choice indices as keys on the lowest levels and the choice group names in the keys of the higher levels