Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList::createIndex
Creates a new unique index for this choice.
Extension point to change the indexing strategy.
Signature
protected function createIndex(mixed
$choice )
Parameters
$choice
— mixed- The choice to create an index for
Returns
- integer|string
- A unique index containing only ASCII letters,
digits and underscores.