PageValues::setUnformatted()
Set an unformatted value for a specified property
If the provided value is already a formatted PageFieldValueInterface, an exception is thrown.
Available since version 3.0.262.
Usage
$pageValues->setUnformatted(Page $page, string $key, mixed $value);Arguments
| Name | Type(s) | Description |
|---|---|---|
$page | Page | |
$key | string | The name of the property to set. |
$value | mixed | The value to set for the property. Must not be a formatted PageFieldValueInterface. |
Exceptions
Method can throw exceptions on error:
WireException- If the value is a formatted PageFieldValueInterface.
PageValues methods and properties
API reference based on ProcessWire core version 3.0.261