media.file.delete

Called after a file is deleted

Example usage:

Event::listen('media.file.delete', function ((\Backend\Widgets\MediaManager) $mediaWidget, (string) $path) {
    \Log::info($path . " was deleted");
});

Or

$mediaWidget->bindEvent('file.delete', function ((string) $path) {
    \Log::info($path . " was deleted");
});

Usage

Triggers

Class or file Line
Backend\Widgets\MediaManager 344
Copyright © 2024 Winter CMS