πŸ‡·πŸ‡ΈSerbia @petar_basic

Account created on 17 September 2019, almost 5 years ago
#

Recent comments

πŸ‡·πŸ‡ΈSerbia petar_basic

Here's a patch to take into account the optional path parameter.

πŸ‡·πŸ‡ΈSerbia petar_basic

Here is a patch to prevent flushing theme registry + cache tags if the path is provided.

πŸ‡·πŸ‡ΈSerbia petar_basic

Interesting and productive meetup! Thanks!

πŸ‡·πŸ‡ΈSerbia petar_basic

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

πŸ‡·πŸ‡ΈSerbia petar_basic

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> "},

πŸ‡·πŸ‡ΈSerbia petar_basic

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.

πŸ‡·πŸ‡ΈSerbia petar_basic

petar_basic β†’ made their first commit to this issue’s fork.

Production build 0.69.0 2024