Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a generator for all fields on a block. #8667

Open
wants to merge 2 commits into
base: rc/v12.0.0
Choose a base branch
from

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #5071

Proposed Changes

This PR adds a getFields() generator to Block that returns a generator that may be used to iterate through all the fields on the block. It also updates core to use this method in preference to nested for loops.

@gonfunko gonfunko requested a review from a team as a code owner November 21, 2024 18:57
@gonfunko gonfunko requested a review from cpcallen November 21, 2024 18:57
@github-actions github-actions bot added the PR: feature Adds a feature label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants