Template::setRoles()
Set roles for this template
Usage
// basic usage
$template->setRoles($value);
// usage with all arguments
$template->setRoles($value, string $type = 'view');
Arguments
Name | Type(s) | Description |
---|---|---|
$value | array PageArray | Role objects or array or Role IDs. |
$type (optional) | string | Specify one of the following:
|
Template methods and properties
API reference based on ProcessWire core version 3.0.251