ObjectChoiceList deprecated::getIndicesForChoices()

array getIndicesForChoices(array $choices) deprecated

deprecated

since version 2.4, to be removed in 3.0.

Returns the indices corresponding to the given choices.

The indices must be positive integers or strings accepted by {@link \Symfony\Component\Form\FormConfigBuilder::validateName()}.

The index "placeholder" is internally reserved.

The indices must be returned with the same keys and in the same order as the corresponding choices in the given array.

Parameters

array $choices An array of choices. Not existing choices in this array are ignored

Return Value

array An array of indices with ascending, 0-based numeric keys
doc_Symfony
2016-10-28 06:25:05
Comments
Leave a Comment

Please login to continue.