public function Security::trustedPermissions in Security Review 8
Returns the permission strings that trusted roles have.
Parameters
bool $group_by_role_id: Choose whether to group permissions by role ID.
Return value
array An array of the permissions trusted roles have. If $groupByRoleId is true, the array key is the role ID, the value is the array of permissions the role has.
File
- src/
Security.php, line 206
Class
- Security
- Provides frequently used security-related data.
Namespace
Drupal\security_reviewCode
public function trustedPermissions($group_by_role_id = FALSE) {
return $this
->rolePermissions($this
->trustedRoles(), $group_by_role_id);
}