ChoiceLoaderInterface

ChoiceLoaderInterface

interface ChoiceLoaderInterface

Loads a choice list.

The methods {@link loadChoicesForValues()} and {@link loadValuesForChoices()} can be used to load the list only partially in cases where a fully-loaded list is not necessary.

Methods

ChoiceListInterface loadChoiceList(null|callable $value = null)

Loads a list of choices.

array loadChoicesForValues(array $values, null|callable $value = null)

Loads the choices corresponding to the given values.

string[] loadVal