Repository navigation
docs: Describe generic entity events for Contact and Custom Field saves and deletes (8.0) - #995
Open
promptless-for-oss wants to merge 1 commit into
Conversation
…es and deletes (8.0)
Contributor
Author
|
The build check on commit Both return No docs change is needed. Both links still returned |
promptless-for-oss
marked this pull request as ready for review
November 27, 2026 02:08
promptless-for-oss
requested review from
a team,
adiati98 and
favour-chibueze
November 27, 2026 02:08
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
Documents mautic/mautic#18416, which moves Contact (
Lead) and Custom Field (LeadField) save and delete events to the genericEntityPreSave,EntityPostSave,EntityPreDelete, andEntityPostDeleteevents.Changes
docs/plugins/event_listeners.rstnow:EntityPostSaveandEntityPostDeletewith aninstanceof Leadguard in the opening subscriber example and the#[AsEventListener]example.LeadandLeadFieldamong the entities that fire the generic entity events, and no longer namesLeadModelas a model with its own events.ContactTracker, and that Form Fields fire the same events.LeadPreBatchSaveEvent/LeadPostBatchSaveEventwrap the per-Contact generic events returned bygetLeadsEvents().LeadPreSaveEvent,LeadPostSaveEvent,LeadPreDeleteEvent,LeadPostDeleteEvent,Field*Event, andLeadFieldEventclasses from the LeadBundle tables and lists, and removes the outdatedFieldSaveDispatcher::dispatchEvent()note.UPGRADE-8.0.mdcovers the migration details.Reviewer note
mautic/mautic#18416 has merged into
8.x, and this PR matches the merged code. It also covers the Contact part of mautic/mautic#18409, which is still open. If #18409 closes without merging, close its docs PR #993 too. If #18409 lands later, rebase #993 on this PR first.Validation
docs/plugins/event_listeners.rstplugins/event_listenersTrigger Events