Embed Paragraph Content in Normalized Parent Entities (REST)

Created on 1 February 2017, over 7 years ago
Updated 5 December 2023, 6 months ago

Problem/Motivation

Paragraphs are normally considered as an inseparable part of their parent entity (like field collections), REST however considers them as a linked entity with their own canonical URL. In many use cases when a node is requested with REST the expected behavior is to have the paragraph fields included in the node JSON.

Proposed resolution

Add a normalizer service that embeds paragraph content in a normalized entity.

Remaining tasks

  • Review
  • Inject the entity_type.manager service.
  • Improve inline code documentation.
  • Fix typo in code comments.
  • Address concern with introduction of new reliance on local ID values.
✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom rlmumford Manchester

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024