Hook that adds a Page::editable([$field]) method to determine if $page is editable by current user
A field name may optionally be specified as the first argument, in which case the field on that page will also be checked for access.
When using field, specify boolean false for second argument to bypass PageEditable check, as an optimization, if you have already determined that the page is editable.
Usage
$pagePermissions->editable(HookEvent $event);
Arguments
Name | Type(s) | Description |
---|---|---|
event | HookEvent |
PagePermissions methods and properties
API reference based on ProcessWire core version 3.0.236