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.
As of #2831134: Remove configurable 'id_field': always use UUID, we no longer have global JSON API configuration, so we can remove it altogether. Which also means we can simplify the construction of ResourceConfig
objects.
This is a blocker for #2829398: Clean up JsonApiResource: the annotation, plugin type, plugin manager, plugin implementations, the dynamic routes generator and the request handler.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2841048-2.patch | 9.67 KB | Wim Leers |
|
Comments
Comment #2
Wim Leers.
Comment #3
Wim LeersThis is what's key.
This is what follows:
ResourceConfig
objects no longer need the config factory to be injected.Turns out we also no longer need to inject the module handler service.
Comment #4
Wim LeersTo be more specific, this is blocking #2841050: Make ResourceConfig an actual value object: immutable, with no services injected.
Comment #5
e0ipsoEverything looks good.
Comment #6
Wim LeersAlso, this is a net reduction:
8 files changed, 6 insertions, 58 deletions
:)Comment #8
e0ipsoComment #9
Wim LeersYay! Now on to #2841050: Make ResourceConfig an actual value object: immutable, with no services injected, which is also green :)