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