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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arshadcn created an issue. See original summary.

shadcn’s picture

Assigned: shadcn » Unassigned
Status: Active » Needs review
FileSize
2.84 KB
e0ipso’s picture

I like this! Only one minor change.

instead of 'Plugin/jsonapi/Field/Enhancer' let's use 'Plugin/jsonapi/FieldEnhancer'.

e0ipso’s picture

Status: Needs review » Needs work
shadcn’s picture

Status: Needs work » Needs review
FileSize
2.83 KB
1.51 KB

This works too. New patch attached :)

  • e0ipso committed 31bef9c on 8.x-1.x authored by arshadcn
    feat(DX): Move field enhancers under a Plugin\jsonapi\FieldEnhancer...
e0ipso’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.