Problem/Motivation
Let's add support for attributes.
Issue fork jsonapi_extras-3483948
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedI ported the annotation, but I removed "class" because attributes already have that.
Comment #4
ptmkenny commentedForgot to wire up the attribute; that's fixed now and I think this is ready to go.
Comment #5
bbralaThanks for this.
I wonder if we should to the BC way, supporting both annotaatinos and attributes. But perhaps since we are the source of the manager only supporting getting things by annotations is fine. Do you agree?
Comment #6
ptmkenny commentedThe annotation class is still there, so annotations are still supported for people who have written their own plugins on top of JSON:API Extras and are using annotations.
As for the plugins in this module, it is fine to convert them to attributes now because the module's composer.json already has "php": ">=8.1", so attributes will definitely be supported (attribute support is from 8.1). So I don't think this should break anything for anyone.
Comment #8
bbralaYeah same cocnclusion here. Thanks!