code: public function indexView(Response $response, ?array $displayItems = null)
      {
          /** if display items have not been passed in, get them from the mapper */
          if ($displayItems === null) {
              $displayItems = $this->getDisplayItems();
          }
  
          /** save error in var prior to unsetting */
          $filterErrorMessage = FormHelper::getFieldError($this->sessionFilterFieldKey);
          FormHelper::unsetSessionFormErrors();
  
          return $this->view->render(
              $response,
              $this->template,
              [
                  'title' => $this->mapper->getListViewTitle(),
                  'insertLinkInfo' => $this->insertLinkInfo,
                  'filterOpsList' => QueryBuilder::getWhereOperatorsText(),
                  'filterValue' => $this->getFilterFieldValue(),
                  'filterErrorMessage' => $filterErrorMessage,
                  'filterFormActionRoute' => $this->indexRoute,
                  'filterFieldName' => $this->sessionFilterFieldKey,
                  'isFiltered' => $this->getFilterFieldValue() != '',
                  'resetFilterRoute' => $this->filterResetRoute,
                  'updatesPermitted' => $this->updatesPermitted,
                  'updateColumn' => $this->updateColumn,
                  'updateRoute' => $this->updateRoute,
                  'deletesPermitted' => $this->deletesPermitted,
                  'deleteRoute' => $this->deleteRoute,
                  'displayItems' => $displayItems,
                  'columnCount' => $this->mapper->getCountSelectColumns(),
                  'sortColumn' => $this->mapper->getListViewSortColumn(),
                  'sortAscending' => $this->mapper->getListViewSortAscending(),
                  'navigationItems' => $this->navigationItems
              ]
          );
      }
docs: display items can be passed in as an array of records or objects, if objects, the appropriate template should be passed to this constructor.