Get the value for a non-native page field, and call upon Fieldtype to join it if not autojoined
Usage
// basic usage
$mixed = $pageValues->getFieldValue($page, string $key);
// usage with all arguments
$mixed = $pageValues->getFieldValue($page, string $key, string $selector = '');
Arguments
Name | Type(s) | Description |
---|---|---|
page | ||
key | string | Name of field to get |
selector (optional) | string | Optional selector to filter load by... ...or, if not in selector format, it becomes an __invoke() argument for object values . |
Return value
null
mixed
PageValues methods and properties
API reference based on ProcessWire core version 3.0.236