Skip to content

Commit

Permalink
[ci skip] Add new feature note
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Nov 3, 2024
1 parent 4b058e2 commit c774fe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/serializer.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ Below is an example of how a `Pagerfanta\Pagerfanta` instance is serialized into

### Preserving Array Keys

<div class="docs-note docs-note--new-feature">This context attribute was introduced in PagerfantaBundle 4.5.</div>

Both serialization integrations support configuring the way array keys are preserved using the `pagerfanta_preserve_keys` context attribute. By default, or when the attribute is explicitly set to null, the payload will be serialized exactly as provided by the pagination adapter. However, when the attribute is set to a boolean value, the value will be used as the second argument when calling the native `iterator_to_array()` function.

0 comments on commit c774fe7

Please sign in to comment.