ChoiceListView
createView(ChoiceListInterface $list, null|array|callable $preferredChoices = null, null|callable $label = null, null|callable $index = null, null|callable $groupBy = null, null|array|callable $attr = null)
Creates a view for the given choice list. Callables may be passed for all optional arguments. The callables receive the choice as first and the array key as the second argument. The callable for the label and the name should return the generated label/choice na