Update, add, delete as needed to match the given $options
Usage
$array = $fieldtypeOptions->setOptions($field, SelectableOptionArray $options);
Arguments
Name | Type(s) | Description |
---|---|---|
field | int, string, Field | Field name, id or object |
options | SelectableOptionArray | Options to save |
Return value
array
Summary of what occurred
Exceptions
Method can throw exceptions on error:
WireException
FieldtypeOptions methods and properties
API reference based on ProcessWire core version 3.0.236