How to Use Preview Rendering Programatically

Created on 23 August 2024, 3 months ago

Problem/Motivation

Your project page clearly states that you must use the field formatter to have this work (thank you for making that clear up-front!). Using field formatters isn't an option in my case though. So I naturally wondered if I could leverage the features of this module programmatically myself. I explored the source code and the services.yml file and nothing jumped out. Am I missing something or is this not possible? Thank you in advance for any clarity you can offer!

Steps to reproduce

Nominally relevant information, but thought it might help:
The site uses custom blocks placed on node pages to render "paragraph" type content, without using the Paragraphs module.
The related nodes are built with ECK and authored using IEF widgets. The data model only has an entity ID (no revision ID).

Proposed resolution

Document how/if this module could be used programmatically to display related nodes when they are rendered in non-traditional ways.

Remaining tasks

Update documentation or expose something in a new service possibly?

User interface changes

N/A

API changes

N/A?

Data model changes

N/A

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States adamzimmermann

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

Comments & Activities

Production build 0.71.5 2024