Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList::createValue
Creates a new unique value for this choice.
By default, an integer is generated since it cannot be guaranteed that all values in the list are convertible to (unique) strings. Subclasses can override this behaviour if they can guarantee this property.
Signature
protected function createValue(mixed
$choice )
Parameters
$choice
— mixed- The choice to create a value for
Returns
- string
- A unique string.