Set options string, but for each language
Usage
// basic usage
$selectableOptionManager->setOptionsStringLanguages(Field $field, array $values);
// usage with all arguments
$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. |
Exceptions
Method can throw exceptions on error:
WireException
SelectableOptionManager methods and properties
API reference based on ProcessWire core version 3.0.236