Problem/Motivation
Developer do not have control over the data which is added to events by other modules.
Steps to reproduce
Proposed resolution
Create and invoke a custom hook for data alter
Remaining tasks
User interface changes
NA
API changes
First custom hook of the module's D8 version will be introduced.
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | facebook_pixel-add_alter_hook-3215790.patch | 3.42 KB | sorabh.v6 |
| #3 | facebook_pixel-add_alter_hook-3215789.patch | 3.41 KB | andyg5000 |
| #2 | 3215789-2.patch | 1.77 KB | sorabh.v6 |
Comments
Comment #2
sorabh.v6Adding patch file with hook and api.php for documentation.
Comment #3
andyg5000Thanks @sorabh.v6
Here's an update to your patch that used dependency injection for the module handler. If you'll test this out and RTBC, I'll get it committed!
Comment #4
sorabh.v6@andyg5000 Thanks for adding the dependency injection. Patch looks good, I saw some whitespace which came from my patch and I fixed that too in my latest patch.
Comment #5
anybodyNew features and fixes should be against 2.x now :)
Comment #7
anybodyThank you all! Committed to 2.x with a slight modification:
hook_facebook_pixel_data_alter is now named hook_facebook_pixel_event_data_alter which I think is more verbose!