Entity Reference field inside Entity Reference

Created on 20 August 2020, over 4 years ago
Updated 28 March 2024, 8 months ago

Hello,
I have paragraph field that references another paragraph inside them. When I display the parent field as a serializable field, the entity reference subfield is displayed as html.

Json output example:

"membranes": [
  {
    "membrane_content": [
      "<div data-quickedit-entity-id=\"paragraph/5\" class=\"paragraph paragraph--type--carousel paragraph--view-mode--rest\">..."
    ],
    "membrane_name": "Sky blue"
  },
  {
    "membrane_content": [
      "<div data-quickedit-entity-id=\"paragraph/1\" class=\"paragraph paragraph--type--image paragraph--view-mode--rest\">..."
    ],
    "membrane_name": "Membrana Azul"
  }
]

Is it possible to display the subfield as a serializable field?

Thanks,
Dani

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain dromansab

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

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.71.5 2024