Documentation
README
Bitrix Events
There are two event models: new (OOP, Event + EventResult) and old (string code + handler returning bool/array). For new code — use the new model. The old model is used for compatibility with the kernel (OnBeforeUserAdd, OnPageStart, ...).
New Model — Publishing Your Event
1. Create Event Class
php bitrix/bitrix.php make:event PostCreated -m vendor.blog
Since main 25.900 for make:*. On older versions, scaffold the class manually.
File: /local/modules/vendor.blog/lib/Public/Event/Post/PostCreatedEvent.php.
This is the opening of the README. Read the full README on GitHub.