Get, find or save roles ($roles API variable as a function)
Accessing roles()
is exactly the same as accessing $roles
. Though there are a couple of optional
shortcuts available by providing an argument to this function.
Usage
// basic usage
$roles = roles();
// usage with all arguments
$roles = roles($selector = '');
Functions methods and properties
API reference based on ProcessWire core version 3.0.236