Review main Merged

96178[TASK] Provide public access to number of items of paginators

Georg Ringer CR +2 V +2 Normal +98 −0 updated 10/22/26, 17:47

Commit message

The paginators already know the total number of items and the number
of items on the current page, but both values were only available
through protected methods of the AbstractPaginator. Displaying e.g.
"10 of 321 records" required counting the items again, either with
an additional query or in the template.

AbstractPaginator now provides the public methods
getTotalNumberOfItems() and getNumberOfItemsOnCurrentPage(), which
return the already calculated values. The existing protected methods
are kept, so custom paginators continue to work unchanged.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Matthias Vogel +1
    • Benni Mack +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Matthias Vogel +1
    • Benni Mack +1
    • core-ci +1 CI

Issues 1

Files 5

Review log 913

  1. Georg Ringer uploaded patch set 1 09/29/26, 19:37

  2. Georg Ringer commented on patch set 1 09/29/26, 19:40

    This change is ready for review.
  3. core-ci voted on patch set 1 V +1 09/29/26, 19:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109537

  4. Wouter Wolters voted on patch set 1 CR +1 V +1 09/29/26, 19:49

  5. Georg Ringer uploaded patch set 2 CR +1 V +1 10/10/26, 09:14

  6. core-ci voted on patch set 2 V +1 10/10/26, 09:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110780

  7. Georg Ringer rebased onto patch set 3 V +1 10/22/26, 15:50

  8. core-ci voted on patch set 3 V -1 10/22/26, 16:12 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112139

  9. core-ci voted on patch set 3 V +1 10/22/26, 16:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112139

  10. Benni Mack voted on patch set 3 CR +1 V +1 10/22/26, 16:48

  11. Matthias Vogel voted on patch set 3 CR +1 V +1 10/22/26, 16:49

  12. Georg Ringer voted on patch set 3 CR +2 V +2 10/22/26, 16:52

  13. Georg Ringer merged patch set 4 10/22/26, 17:47