Complete reference of all plugin events and hooks available in StormNodes for extending functionality
Understanding StormNodes's event-driven architecture
StormNodes uses an event-driven architecture that allows plugins to hook into system events and extend functionality without modifying core code. Events are emitted at key points in the application lifecycle and can be listened to by plugins.
In your plugin's main class, implement the processEvents method:
public static function processEvents(PluginEvents $event): void
{
$event->on('stormnodes:user:created', function ($user) {
// Handle user creation
});
}Events follow a consistent naming pattern: stormnodes:category:action. Each event includes callback parameter information to help you understand what data is available.