$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.214

Twitter updates

    Error retrieving Twitter status

Latest news

  • ProcessWire Weekly #471
    In the 471st issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party textformatter module for video embedding, and more. Read on!
    Weekly.pw / 20 May 2023
  • A look at the new Page Edit Restore module
    The new Page Edit Restore module helps to prevent page edits in the admin from getting lost when the user’s session is lost. This post covers it in detail.
    Blog / 12 May 2023
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer