Is it possible? To use the viewBuilder of an entity to generate the complete html and save that output into a string instead of sending it to a browser.
It would open the possibility to have email messages render using twig templates.
I have been poking around the different services and using the renderer service I can render the page-specific output as html but I can't find a way to get the complete HTML code into a string.
Matt.