The Events system to hook into various events that occur within the system.
use MarkdownMaster\Events\RenderPageViewEvent;
// Subscribe to an event
RenderPageViewEvent::Subscribe(function(RenderPageViewEvent $event) {
// Plugin logic here
});
RenderPageViewEventEvent that fires when an HTML page is being rendered by the server.
Provides an opportunity to manipulate the page rendering
FileParsedEventEvent that fires while a Markdown file is being parsed.
Gives an opportunity to inject or manipulate variables within the File object itself.
You can get debug information about registered hooks:
$debug = HookService::GetDebugInfo();
print_r($debug);