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

NameType(s)Description
$pagePage
$keystring

The name of the property to set.

$valuemixed

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