How to display the rendered entity of a store in a code ?

I created a custom module for Drupal 8 and Drupal Commerce. It is used to display a link "Accept the conditions of sale" in the purchase funnel during an order.

This link displays a modal window with the rendering of a page.

I have created a "terms and conditions" display mode in my store types. I want the link to show the store's rendered "terms and conditions" entity in a modal window.

So I want to make the entity store instead of showing a page in the modal link.

How to do this ?

Here is my code :

Updating core with composer leads to differing results

I have several drupal installations with identical core-recommended in composer.json

"drupal/core-recommended": "^8.8",

Core ist updated with:

composer update drupal/core-recommended --with-dependencies

Some pages get updated to 8.9.6, others 'only' to 8.8.10.

Best approach to have this form embeded in a content type

I want to embed a form into a content type where the field values in the form (attached to the respective nodes will be) will be:

1) compared to the values in the nodes of a separate content type.

2) used in Views to generate specific views pages.

Based on these two bulle points I am wary of using paragraph as my search indicates paragraph fields are either not accessible in Views or difficult to access. The other option I see is use Webforms but I'm how the data is stored and how accessible the webform fields values are to the Views module.

Best way to store data that nodes can share

I want an entity where I can store various bits of data (using fields) and link that data to multiple page nodes. But that data should not be visible to anyone - it is more for adding and displaying data programmatically or via Views. What's the best way to go about this?

social_auth_google advanced setting how to capture collected data

social_auth_google and social_auth_facebook modules offer advanced setting "API calls to be made to collect data".  How can the results of such API calls be captured?  For example, if I request the user's gender, how can I capture the result into a "gender" field?

error on 8.7.4 to 8.9.5 manual update

Performing the manual update from 8.7.4 to 8.9.5 I got this error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x