Skip to content

[5.x] Extend get modifier#11889

Closed
marcorieser wants to merge 5 commits into
statamic:5.xfrom
marcorieser:feat/enhance-get-modifier
Closed

[5.x] Extend get modifier#11889
marcorieser wants to merge 5 commits into
statamic:5.xfrom
marcorieser:feat/enhance-get-modifier

Conversation

@marcorieser

@marcorieser marcorieser commented Jun 22, 2025

Copy link
Copy Markdown
Contributor

This PR extends the existing get modifier and:

  • Adds Tests for existing get modifier logic (separate commit)
  • Adds support for a specific index when modifying an array (e.g. entries_as_array | get(1) or address_as_array | get('street'))
  • Adds support for Collections (same behavior as for arrays)
  • Adds support for Query Builders. They get resolved and return the whole result or (if given) a specific index, like for arrays

@marcorieser marcorieser marked this pull request as draft June 22, 2025 22:11
@marcorieser marcorieser deleted the feat/enhance-get-modifier branch July 8, 2025 13:27
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.

1 participant