SelectableOptionManager::setOptionsStringLanguages()
Set options string, but for each language
Usage
// basic usage
$array = $selectableOptionManager->setOptionsStringLanguages(Field $field, array $values);
// usage with all arguments
$array = $selectableOptionManager->setOptionsStringLanguages(Field $field, array $values, bool $allowDelete = true);Arguments
| Name | Type(s) | Description |
|---|---|---|
$field | Field | |
$values | array | Array of ($languageID => string), one for each language |
$allowDelete (optional) | bool | Allow removed lines in the string to result in deleted options? If false, no options will be affected but you can call the getRemovedOptionIDs() method to retrieve them for confirmation. |
Return value
arrayArray of quantities indexed by: added, updated, deleted, marked Note that prior to 3.0.258 there was no return value.
Exceptions
Method can throw exceptions on error:
WireException
SelectableOptionManager methods and properties
API reference based on ProcessWire core version 3.0.259