Add example of usage in plugin code to docs/events.md