/** * Convert an array of option arrays, to a SelectableOptionArray of SelectableOption objects * * @param array $value * @return SelectableOptionArray * @throws WireException * */ protected function optionsArrayToObjects(array $value) { $options = new SelectableOptionArray(); foreach ($value as $o) { $option = new SelectableOption(); foreach ($o as $k => $v) { $option->set($k, $v); } $options->add($option); } return $options; }