Repository navigation
docs: Describe generic entity events for Contact saves and deletes (8.0) - #993
Draft
promptless-for-oss wants to merge 2 commits into
Draft
promptless-for-oss wants to merge 2 commits into
promptless-for-oss wants to merge 2 commits into
Conversation
Contributor
Author
|
The build check failed on commit Both return No docs change is needed. Both links still returned |
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open in Promptless
Description
Updates the 8.0 developer docs for mautic/mautic#18409. That PR moves Contact saves and deletes to the generic entity events and removes
LeadPreSaveEvent,LeadPostSaveEvent,LeadPreDeleteEvent, andLeadPostDeleteEvent.All changes are in
plugins/event_listeners.rst:EntityPostSaveandEntityPostDeleteand return early unlessgetEntity()returns aLead. They no longer use the removed classes.Mautic\LeadBundle\Entity\Leadand no longer namesLeadModelas a model with its own events.LEAD_POST_SAVEandLEAD_POST_DELETEremain only as Webhook event type identifiers and drops the four rows that pointed to the removed classes. The subclass example now usesLeadPreMergeEventandLeadPostMergeEvent.LeadEventdirectly. It now saysLeadIdentifiedEventextendsLeadEventand that the batch save events return oneLeadEventper Contact fromgetLeadsEvents().Contact Webhook payloads don't change. This branch adds no migration content, since the source PR already lists the removed classes in
UPGRADE-8.0.md.Note: open suggestions for #18346, #18347, and #18405 (docs PR #991) edit nearby lines in this file, so whichever merges later may need a small merge.
Validation

Linked issue
Related to mautic/mautic#18409
Trigger Events