LazyChoiceList
LazyChoiceList
class LazyChoiceList implements ChoiceListInterface
A choice list that loads its choices lazily.
The choices are fetched using a {@link ChoiceLoaderInterface} instance. If only {@link getChoicesForValues()} or {@link getValuesForChoices()} is called, the choice list is only loaded partially for improved performance.
Once {@link getChoices()} or {@link getValues()} is called, the list is loaded fully.
Methods
__construct(ChoiceLoaderInterface $loader, callable $value = null)
|