Event catalogue
Overview
The events a plugin can subscribe to.
A plugin can take part in a core operation in two ways. React: a domain event is dispatched after the change — the audit trail and automations hang off it. Object: a vetoable event is dispatched before the change and can refuse it with a reason. That is exactly why the second kind exists: an approval rule that only applies after saving is not an approval rule.
Vetoable events
These 32 events are frozen as a contract: their signature does not change without breaking the contract version. An objection is reported to the caller as a refusal with a reason, not as an error.
| Event |
|---|
App\Platform\Auth\Event\MembershipChanging |
App\Platform\Auth\Event\RolePermissionsChanging |
App\Platform\Automation\Event\AutomationActivating |
App\Platform\Commerce\Event\DocumentConverting |
App\Platform\Commerce\Event\NumberSchemeChanging |
App\Platform\Commerce\Event\PaymentRecording |
App\Platform\Communication\Event\CommunicationSending |
App\Platform\CustomField\Event\CustomFieldDefinitionChanging |
App\Platform\Customer\Event\ContactDeleting |
App\Platform\Customer\Event\ContactMerging |
App\Platform\Customer\Event\ContactMutating |
App\Platform\Customer\Event\CustomerDeleting |
App\Platform\Customer\Event\CustomerMerging |
App\Platform\Customer\Event\CustomerMutating |
App\Platform\DSGVO\Event\DataRequestDeciding |
App\Platform\File\Event\FileDeleting |
App\Platform\File\Event\FileUploading |
App\Platform\Integration\Event\IntegrationTargetMutating |
App\Platform\Integration\Event\WebhookTargetMutating |
App\Platform\Mail\Event\SystemMailSending |
App\Platform\Plugin\Event\PluginLifecycleChanging |
App\Platform\Setting\Event\FeatureFlagChanging |
App\Platform\Setting\Event\LookupCatalogChanging |
App\Platform\Setting\Event\SettingChanging |
App\Shared\Event\VetoableEvent |
App\WorkItem\Event\WorkItemCommentPosting |
App\WorkItem\Event\WorkItemCreating |
App\WorkItem\Event\WorkItemStatusChanging |
Octi\Plugin\Hr\Event\AbsencePeriodMutating |
Octi\Plugin\Invoicing\Event\DunningTransitioning |
Octi\Plugin\Invoicing\Event\InvoiceIssuing |
Octi\Plugin\SalesOrder\Event\OrderConfirming |
The events to react to are too numerous for one page and change with every module. Their complete, generated catalogue ships in the developer package as docs/plugin-events.md.