Timeline
The following is a timeline map of the events fired in the CMS (frontend).
- cms.page.beforeDisplay
-
cms.page.initComponents
-
layout::onInit()
-
page::onInit()
-
- cms.page.init
- cms.ajax.beforeRunHandler
- cms.component.beforeRunAjaxHandler
- cms.component.runAjaxHandler
-
cms.page.start -- start of page lifecycle
-
layout::onStart()
-
layout::runComponents()
- component.beforeRun
-
component::onRun()
- component.run
-
layout::onBeforePageStart()
-
page::onStart()
-
page::runComponents()
- component.beforeRun
-
component::onRun()
- component.run
-
page::onEnd()
-
layout::onEnd()
-
- cms.page.end -- end of page lifecycle
- cms.page.beforeRenderPage
- cms.page.render
- cms.page.postprocess
- cms.page.display
NOTE: Adding the following code in your Plugin's
boot()
method will dump the CMS page event stack to yoursystem.log
file:
$events_history = [];
Event::listen('*', function ($event, $params) use (&$events_history) {
if (!str_starts_with($event, 'cms.')) {
return;
}
$events_history[] = $event;
if ($event === 'cms.page.display') {
trace_log($events_history);
}
});
Copyright © 2024 Winter CMS