What is the point of forwarding calls to collection in paginator instance? #41461
Unanswered
mikeydevelops
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, AbstractPaginator forwards its calls to the underlying collection instance and returns the result of the collection methods. As we know, most of the collection methods are immutable, i.e return new instance instead of modifying the current one.
Example
My question is why are the paginators forwarding calls to the collection instance?
Beta Was this translation helpful? Give feedback.
All reactions