LazyChoiceList deprecated

LazyChoiceList deprecated

class LazyChoiceList implements ChoiceListInterface

deprecated

since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\LazyChoiceList} instead.

A choice list that is loaded lazily.

This list loads itself as soon as any of the getters is accessed for the first time. You should implement loadChoiceList() in your child classes, which should return a ChoiceListInterface instance.

Methods

array getChoices()

Returns t