Problem/Motivation
Sometimes we want to create custom responses using Custom Elements. Therefore it would be nice to be able to let the CustomElementRenderer render the content only in the right format without creating the complete response object.
Steps to reproduce
Proposed resolution
- Create new methods in
CustomElementRendererthat take care of rendering the custom element content only. - Introduce a new
CustomElementRendererTraitfor easier usage of the renderer.
Remaining tasks
User interface changes
API changes
Additional methods on CustomElementRenderer
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3348108-7--render-custom-elements.patch | 8.54 KB | arthur_lorenz |
Issue fork lupus_ce_renderer-3348108
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
arthur_lorenz commentedComment #4
arthur_lorenz commentedComment #5
fagoComment #6
arthur_lorenz commentedThx, updated MR and additionally uploaded a patch file.
Comment #7
arthur_lorenz commentedThx improved naming and code docs.
Comment #9
fagoThis works well and is a good improvement, so merged.