Fixed
Project:
etracker
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2026 at 14:30 UTC
Updated:
24 Jun 2026 at 12:44 UTC
Jump to comment: Most recent
The elaboration of a test for the breadcrumb_as_area feature has discovered some strange dead code paths in the hooks. Some major parts are not working and aren't covered by a functional test.
we should rework the chain of the hooks
etracker_preprocess_pageetracker_page_attachments_alter_etracker_set_default_variables_etracker_add_variableespecially the generation of the inline javascript variables is only working once.
Some code parts in the etracker_preprocess_page never has done any meaningful job.
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
sunlixOkay, I think this is a nice simplification of the current hook code.
The following changes were made:
etracker_preprocess_pagedeleted without any replacementetracker_page_attachments_alter moved to etracker_page_attachments_etracker_set_default_variablesdeleted without any replacement_etracker_add_variable</li> deleted without any replacementetracker.api.php</li> deleted without any replacementAll tests are green.
I know that these changes could be handled as breaking change, but I think we have a tiny group of users and the most code path's were dead code path's with any impact on rendering.
So I will merge it..
Comment #4
sunlix