jjchinquist β credited petar_basic β .
Re-rolled the patch against 1.1.0.
jjchinquist β credited petar_basic β .
petar_basic β created an issue.
jjchinquist β credited petar_basic β .
Here's a patch to take into account the optional path parameter.
Here is a patch to prevent flushing theme registry + cache tags if the path is provided.
Interesting and productive meetup! Thanks!
I can confirm the patch from #2 works.
petar_basic β created an issue.
petar_basic β created an issue.
I've tested this and it works well.
I've then enabled content translation module, added a language and a translated article -> it does not work for translated article. (not sure if it should at this point, so just a note) -> I get this path: /de/ce-api/de/node/1?_content_format=json
I've overrided the generate method now as well. Also moved the common code into the separate helper function.
Tested locally and on drupal pod, works well for me now.
"content":"\n <div class=\"wide-image primary-image field field--name-field-image field--type-image field--label-hidden field__item\" <img loading=\u0022lazy\u0022 src=\"https:\/\/8080-shaal-drupalpod-k6ot9a4erhh.ws-eu89b.gitpod.io\/sites\/default\/files\/styles\/wide\/public\/2023-03\/Screenshot%20from%202022-12-06%2009-59-05.png?itok=C9VjS8XY\" width=\u0022589\u0022 height=\"583\" alt=\"test\" ></div> "},
I've tried with $is_api_response = $processed_request->attributes->get('lupus_ce_renderer') || $processed_request->getRequestFormat() == 'custom_elements';
but it still does not work.
Needs more debugging to see why it is not set.
petar_basic β made their first commit to this issueβs fork.