Skip to content

Conversation

@pixeldesu
Copy link
Contributor

This commit adds the f:flatten ViewHelper, allowing to flatten multi-dimensional array structures.

Example

Input:

[[1, 2], [3, 4]]
<f:flatten value="{0: {0: '1', 1: '2'}, 1: {0: '3', 1: '4'}}" />

Output:

{0: '1', 1: '2', 2: '3', 3: '4'}

@pixeldesu pixeldesu force-pushed the feature/flatten branch 2 times, most recently from 7e866e5 to 7b8c38e Compare June 25, 2025 19:47
This commit adds the `f:flatten` ViewHelper, allowing to flatten multi-dimensional array structures.
@s2b
Copy link
Contributor

s2b commented Jun 25, 2025

Thank you for your contribution!

@s2b s2b merged commit a3c3309 into TYPO3:main Jun 25, 2025
4 checks passed
@pixeldesu pixeldesu deleted the feature/flatten branch June 25, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants