public static function messageuser_link_params(int $useridto) : array {
        global $USER;

        return [
            'id' => 'message-user-button',
            'role' => 'button',
            'data-conversationid' => api::get_conversation_between_users([$USER->id, $useridto]),
            'data-userid' => $useridto,
        ];
    }
public static function messageuser_link_params(int $useridto) : array {
        global $USER;

        return [
            'id' => 'message-user-button',
            'role' => 'button',
            'data-conversationid' => api::get_conversation_between_users([$USER->id, $useridto]),
            'data-userid' => $useridto,
        ];
    }
public static function messageuser_link_params ( int $ useridto ) : array { global $ USER ; return [ 'id' => 'message-user-button' , 'role' => 'button' , 'data-conversationid' => api :: get_conversation_between_users ( [ $ USER -> id , $ useridto ] ) , 'data-userid' => $ useridto , ] ; }
Returns the attributes to place on the message user button.

@param int $useridto
@return array
Returns the attributes to place on the message user button .