Repository navigation
docs: Describe generic entity events for API client and Company saves and deletes (8.0) - #991
Draft
promptless-for-oss wants to merge 1 commit into
Conversation
This was referenced Nov 26, 2026
Contributor
Author
|
The build check on commit Both returned No docs change is needed. Re-run the check once community.mautic.org is back up, and it should pass. |
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#18405, which moves API client and Company saves and deletes to the generic entity events and removes
ClientEvent,ClientPostSaveEvent,ClientPostDeleteEvent, and the fourCompanyPre/Post Save/Deleteevent classes.plugin_extensions/api.rst: API client lifecycle events now says Mautic dispatchesEntityPreSave,EntityPostSave,EntityPreDelete, andEntityPostDeletefor API clients, and links to the generic entity events section. The existingApiEventsconstants table now pointsCLIENT_POST_SAVEandCLIENT_POST_DELETEtoEntityPostSaveandEntityPostDelete, andClientEventno longer appears in the list of abstract base classes.plugins/event_listeners.rst: The generic entity events list now includesClientandCompany. The LeadBundle section explains how to listen for Company saves and deletes, saysCOMPANY_POST_SAVEandCOMPANY_POST_DELETEremain only as Webhook event type identifiers, and drops the rows that mapped Company constants to the removed classes.CompanyEventstays in the list of abstract classes becauseCompanySoftDeleteEventstill extends it. Company Webhook payloads don't change. This branch adds no migration content beyond correcting existing rows.UPGRADE-8.0.mdin the source PR already lists the removed classes.Note: open suggestions for #18346 and #18347 also edit the same entity list in
event_listeners.rst, so whichever merges later needs a small merge. The #18347 branch namesCompanyModelas a model with its own events. That stops being true once #18405 merges.Validation

Linked issue
Related to mautic/mautic#18405
Trigger Events