code: private function getShowParameters(Request $request)
      {
          $showingAll = FALSE;
          $start = -100;
          $count = -1;
  
          if ($request->query->has('all')) {
              $start = 0;
              $count = -1;
              $showingAll = TRUE;
          }
  
          return [$start, $count, $showingAll];
      }
docs: Decide which parts of a job queue to show
  
  @param Request $request
  
  @return array