cms.template.delete

Fires after a CMS template (page|partial|layout|content|asset) has been deleted.

Example usage:

Event::listen('cms.template.delete', function ((\Cms\Controllers\Index) $controller, (string) $type) {
    \Log::info("A $type has been deleted");
});

Or

$CmsIndexController->bindEvent('template.delete', function ((string) $type) {
    \Log::info("A $type has been deleted");
});

Usage

Triggers

Class or file Line
Cms\Controllers\Index 334
Copyright © 2024 Winter CMS