Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Refactor Field Type organization #243

Closed
jasonbahl opened this issue Mar 30, 2021 · 1 comment · May be fixed by #262
Closed

Refactor Field Type organization #243

jasonbahl opened this issue Mar 30, 2021 · 1 comment · May be fixed by #262
Assignees

Comments

@jasonbahl
Copy link
Contributor

Currently, the class-config.php file includes a massive switch statement and logic for all field types.

Each field should have it's own Class file, extending a generic AcfField class, which sets up how the field is mapped to the GraphQL Schema and how the fields resolve.

@jasonbahl
Copy link
Contributor Author

Closed by #262.

Nice new folder/class structure introduced in v0.6.0

Before

The entire plugin was basically in 4 files.

Screen Shot 2021-05-13 at 10 39 11 AM

After

(still not final, but close enough to close this issue as resolved by v0.6.0)

Screen Shot 2021-05-13 at 10 37 50 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants