Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messages do not render when used as entity reference. #255

Open
DerekCresswell opened this issue May 25, 2020 · 0 comments
Open

Messages do not render when used as entity reference. #255

DerekCresswell opened this issue May 25, 2020 · 0 comments

Comments

@DerekCresswell
Copy link

I've got a message that has a field for entity references to other messages.

I'm using message notify to send out this message as an email. In the email no message entity is rendered. I have it set to render as "Email Body".

I know that the references are actually set because using tokens I can see that these messages are present. I can also send the referenced messages as an email and they render just fine.

When debugging I saw that the render array returned from the view builder only had a #cache element.

I'm still relatively new to Drupal and was unable to find out what was wrong. For now I've gotten around this by adding a check in my custom notifier that will go through each referenced entity and render them and then concat them together. I'd love to figure out how to get this working the intended way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant