Allow the given Page to appear in admin theme navigation?
Usage
// basic usage
$bool = $adminThemeFramework->allowPageInNav(Page $p);
// usage with all arguments
$bool = $adminThemeFramework->allowPageInNav(Page $p, $children = [], $permission = null);
Arguments
Name | Type(s) | Description |
---|---|---|
p | Page | Page to test |
children (optional) | PageArray, array | Children of page, if applicable (optional) |
permission (optional) | string, null | Specify required permission (optional) |
Return value
bool
AdminThemeFramework methods and properties
API reference based on ProcessWire core version 3.0.236