Skip to content

[Serializer] Injecting additional data during serialization #18904

Closed
@simshaun

Description

@simshaun

I frequently have serialization use cases where the frontend needs more information about each entity than is available in the entities themselves. Just one example is using the router to provide URLs for each entry when serializing a collection.

From what I can see, there doesn't appear to be an easy way to do that. I propose allowing the optional use of an event dispatcher during the normalization process to modify the data that gets encoded.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions