Active
Project:
Diff
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2013 at 17:04 UTC
Updated:
17 Jul 2020 at 07:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
elliotttf commentedComment #2
alan d. commentedI thought that this was fairly trivial
So you use the above code with
Comment #3
alan d. commentedClosing due to lack of feedback and the existing solution works nicely afaict.
Complain to sun if the __ syntax is confusing, I think he spearheaded this during D7 development from memory ;)
Comment #4
jwilson3How can the theming output be done in Drupal 8? I need to add a
<div class="container">around the diff-header, navigation, and controls, but not affect the original node content (which already has a container wrapper).It is not immediately obvious to a themer how to do this.
I've looked at adding logic in the template where the output is rendered (block--system-main-content.html.twig) but by this point in the render pipeline the {{ content }} object has already been rendered to markup, so its impossible to isolate the diff-related UI elements as a separate renderable array element.
Comment #5
adamjuran commentedI have the same issue as @jwilson3, wanting to wrap the output in other markup. Is there a reason there is no twig template for this module? Could there be?