cms.page.initComponents
Fires after the components for the given page have been initialized
Example usage:
Event::listen('cms.page.initComponents', function ((\Cms\Classes\Controller) $controller, (\Cms\Classes\Page) $page, (\Cms\Classes\Layout) $layout) {
\Log::info($page->title . ' components have been initialized');
});
Or
$CmsController->bindEvent('page.initComponents', function ((\Cms\Classes\Page) $page, (\Cms\Classes\Layout) $layout) {
\Log::info($page->title . ' components have been initialized');
});
Usage
Triggers
Class or file | Line |
---|---|
Cms\Classes\Controller
|
667 |
Copyright © 2024 Winter CMS