FieldtypeOptions::addOptions()

Add the given new options

Usage

$int = $fieldtypeOptions->addOptions($field, SelectableOptionArray $options);

Arguments

NameType(s)Description
$field
$optionsSelectableOptionArray

Return value

int

Number of options added

Exceptions

Method can throw exceptions on error:

  • WireException


FieldtypeOptions methods and properties

API reference based on ProcessWire core version 3.0.252