Closed (fixed)
Project:
GovCMS CA3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 May 2026 at 02:00 UTC
Updated:
26 May 2026 at 04:10 UTC
Jump to comment: Most recent
Default node.html.twig adds the following when $page is FALSE
<h2 class="node__title">
<a href="/about-us/dept/security-test" rel="bookmark"><span class="field field--name-title field--type-string field--label-hidden">Security test</span>
</a>
</h2>
Add an implementation of hook_preprocess_node
In this set $variables['page'] to TRUE when the $variables['elements']['#view_mode'] is ‘ca3’
Update existing CdfRenderSubscriberTest test to assert that the h2 isn’t output (this code exists in node/template/node.html.twig so should be happening in the test too)
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
larowlanComment #5
larowlan