CodeExplorer loadChoices example
abstract class AbstractChoiceLoader implements ChoiceLoaderInterface
{ private ?iterable
$choices;
/**
* @final
*/
public function loadChoiceList(callable
$value = null
): ChoiceListInterface
{ return new ArrayChoiceList($this->choices ??=
$this->
loadChoices(),
$value);
} public function loadChoicesForValues(array
$values, callable
$value = null
): array
{ if (!
$values) { return [];
} return $this->
doLoadChoicesForValues($values,
$value);
}