cms.template.processSettingsBeforeSave

Triggered in Cms\Classes\EditorExtension\HasExtensionCrud.

Fires before a CMS template (page|partial|layout|content|asset) is saved and provides an opportunity to interact with the settings data. $dataHolder = {settings: []}

Example usage:

Event::listen('cms.template.processSettingsBeforeSave', function ((\Cms\Classes\EditorExtension) $editorExtension, (object) $dataHolder) {
    // Make some modifications to the $dataHolder object
});