There is no $request here

Is this the right way to define $request to get the limitstart parameter?