Problem/Motivation
If entity uses render elements that are lazy rendered (using drupal placeholders) entity print renderer ignores them.
Steps to reproduce
Try to print the page that has comments form. Or use Advanced insert view module to add view to CKEditor field. There is a related issue https://www.drupal.org/project/insert_view_adv/issues/3219943
Proposed resolution
In src/Renderer/RendererBase.php class in generateHtml method use $is_root_call variable as TRUE when rendering entities.
Remaining tasks
Create MR
User interface changes
No changes
API changes
No changes
Data model changes
No changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3220385-7.gif | 38.95 KB | kleiton_rodrigues |
| #6 | entity_print-3220385-6.patch | 569 bytes | mylies |
Issue fork entity_print-3220385
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
a.dmitriiev commentedAre there any consequences using
$is_root_call = TRUEwhen doing render? I checked the PDF and it was ok, also no errors, but maybe there are other cases?Comment #4
a.dmitriiev commentedComment #5
a.dmitriiev commentedAll tests passed, so I guess this doesn't bring any problems.
Comment #6
mylies commentedThank you for the patch, a.dmitriiev!
I did the patch-file according to fork that made a.dmitriiev, just to be able to point it while composer-based patching
UPD: oops, it seems there no need the patch anymore - composer will recognize this way too https://git.drupalcode.org/project/entity_print/-/merge_requests/5.patch
Comment #7
kleiton_rodrigues commentedPatch applied successfully
looks good to me
moving to RTBC
Comment #9
larowlanThanks