ArrayAdapter::save()

save(CacheItemInterface $item) {@inheritdoc} Parameters CacheItemInterface $item

ArrayChoiceList::getOriginalKeys()

int[]|string[] getOriginalKeys() Returns the original keys of the choices. The original keys are the keys of the choice array that was passed in the "choice" option of the choice type. Note that this array may contain duplicates if the "choice" option contained choice groups: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array(true, false), 'Undecided' => array(null), ), )); In this example, the original key 0 appears t

ArrayAdapter::saveDeferred()

saveDeferred(CacheItemInterface $item) {@inheritdoc} Parameters CacheItemInterface $item

ArrayChoiceList::getChoicesForValues()

array getChoicesForValues(array $values) Returns the choices corresponding to the given values. The choices are returned with the same keys and in the same order as the corresponding values in the given array. Parameters array $values An array of choice values. Non-existing values in this array are ignored Return Value array An array of choices

ArrayChoiceList::getChoices()

array getChoices() Returns all selectable choices. Return Value array The selectable choices indexed by the corresponding values

ArrayChoiceList

class ArrayChoiceList implements ChoiceListInterface A list of choices with arbitrary data types. The user of this class is responsible for assigning string values to the choices. Both the choices and their values are passed to the constructor. Each choice must have a corresponding value (with the same array key) in the value array. Methods __construct(array|Traversable $choices, callable $value = null) Creates a list with the given choices and values. array getChoices() Returns all

ArrayAdapter::deleteItem()

deleteItem($key) {@inheritdoc} Parameters $key

ArrayAdapter::deleteItems()

deleteItems(array $keys) {@inheritdoc} Parameters array $keys

ArrayAdapter::getItems()

getItems(array $keys = array()) {@inheritdoc} Parameters array $keys

ArrayAdapter::hasItem()

hasItem($key) {@inheritdoc} Parameters $key