You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API Platform provides a vendor specific extensions that you can reuse in your custom DataProvider.
169
+
API Platform provides a few extensions that you can reuse in your custom DataProvider.
170
170
Note that there are a few kinds of extensions which are detailed in [their own chapter of the documentation](extensions.md).
171
171
Because extensions are tagged services, you can use the [injection of tagged services](https://symfony.com/blog/new-in-symfony-3-4-simpler-injection-of-tagged-services):
172
172
@@ -238,6 +238,54 @@ final class BlogPostItemDataProvider implements ItemDataProviderInterface, Restr
238
238
}
239
239
```
240
240
241
+
## Use Pagination in Custom Collection Data Provider
242
+
243
+
If you are implementing your own collection data provider, you might also want to support pagination. You can do
244
+
this by returning a `ApiPlatform\Core\DataProvider\PaginatorInterface` instance.
245
+
246
+
API Platform provides a few paginators, e.g. `ApiPlatform\Core\DataProvider\ArrayPaginator` and
0 commit comments