$page->getAccessParent() method

Returns the page from which role/access settings are inherited from

Usage

// basic usage
$page = $page->getAccessParent();

// usage with all arguments
$page = $page->getAccessParent(string $type = 'view');

Arguments

NameType(s)Description
type (optional)string

Optionally specify one of 'view', 'edit', 'add', or 'create' (default='view')

Return value

Page NullPage

Returns NullPage if none found


$page methods and properties

API reference based on ProcessWire core version 3.0.244

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani