getAssignments() public abstract method
Returns all role assignment information for the specified user.
public abstract yii\rbac\Assignment[] getAssignments ( $userId ) | ||
---|---|---|
$userId | string|integer |
The user ID (see yii\web\User::$id) |
return | yii\rbac\Assignment[] |
The assignments indexed by role names. An empty array will be returned if there is no role assigned to the user. |
Please login to continue.