FieldtypeOptions::setOptions()

Update, add, delete as needed to match the given $options

Usage

$array = $fieldtypeOptions->setOptions($field, SelectableOptionArray $options);

Arguments

NameType(s)Description
$fieldint string Field

Field name, id or object

$optionsSelectableOptionArray

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.251