Set admin theme for all users having role
Available since version 3.0.176.
Usage
$int = $users->setAdminThemeByRole($adminTheme, Role $role);
Arguments
Name | Type(s) | Description |
---|---|---|
adminTheme | AdminTheme, string | Admin theme instance or class/module name |
role | Role |
Return value
int
Number of users set for admin theme
Exceptions
Method can throw exceptions on error:
WireException
API reference based on ProcessWire core version 3.0.236