PageTraversal::referencing()

Return pages that this page is referencing by way of Page reference fields

Usage

// basic usage
$items = $pageTraversal->referencing(Page $page);

// usage with all arguments
$items = $pageTraversal->referencing(Page $page, $field = false, bool $getCount = false);

Arguments

NameType(s)Description
$pagePage
$field (optional)bool Field string int

Limit results to requested field, or specify boolean true to return array indexed by field names.

$getCount (optional)bool

Specify true to return count(s) rather than pages.

Return value

PageArray int array


PageTraversal methods and properties

API reference based on ProcessWire core version 3.0.255