Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
FieldEnhancers is a great idea and gives developers a lot of control. I can see a lot of cases where we could end up with a lot of custom enhancers.
Let's consider moving them under a \Plugin\jsonapi\Field\Enhancer
namespace. This should make the implementation cleaner and be open for extension down the road (maybe other type of enhancers?).
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff-2874324-2-5.txt | 1.51 KB | shadcn |
#5 | dx_consider_moving-2874324-5.patch | 2.83 KB | shadcn |
#2 | dx_consider_moving-2874324-2.patch | 2.84 KB | shadcn |
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commentedComment #3
e0ipsoI like this! Only one minor change.
instead of
'Plugin/jsonapi/Field/Enhancer'
let's use'Plugin/jsonapi/FieldEnhancer'
.Comment #4
e0ipsoComment #5
shadcn CreditAttribution: shadcn at Chapter Three commentedThis works too. New patch attached :)
Comment #7
e0ipsoThanks!