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

Comments

sorabh.v6 created an issue. See original summary.

sorabh.v6’s picture

Assigned: sorabh.v6 » Unassigned
Status: Active » Needs review
StatusFileSize
new1.77 KB

Adding patch file with hook and api.php for documentation.

andyg5000’s picture

Thanks @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!

sorabh.v6’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new3.42 KB

@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.

anybody’s picture

Version: 8.x-1.x-dev » 2.x-dev
Status: Reviewed & tested by the community » Needs work

New features and fixes should be against 2.x now :)

  • Anybody committed c2c4c32 on 2.x
    Issue #3215789 by sorabh.v6, andyg5000, Anybody: Allow developers to...
anybody’s picture

Status: Needs work » Fixed

Thank 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!

  • Anybody committed cf2834f on 2.x
    Issue #3215789 by sorabh.v6, andyg5000, Anybody: Allow developers to...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.