cms.template.processSettingsBeforeSave
Fires before a CMS template (page|partial|layout|content|asset) is saved and provides an opportunity to interact with the settings data. $dataHolder
= {settings: []}
$dataHolder
= {settings: []}Example usage:
Event::listen('cms.template.processSettingsBeforeSave', function ((\Cms\Controllers\Index) $controller, (object) $dataHolder) {
// Make some modifications to the $dataHolder object
});
Or
$CmsIndexController->bindEvent('template.processSettingsBeforeSave', function ((object) $dataHolder) {
// Make some modifications to the $dataHolder object
});
Usage
Triggers
Class or file | Line |
---|---|
Cms\Controllers\Index
|
814 |
Copyright © 2024 Winter CMS