media.file.rename
Called after a file is renamed / moved
Example usage:
Event::listen('media.file.rename', function ((\Backend\Widgets\MediaManager) $mediaWidget, (string) $originalPath, (string) $newPath) {
\Log::info($originalPath . " was moved to " . $path);
});
Or
$mediaWidget->bindEvent('file.rename', function ((string) $originalPath, (string) $newPath) {
\Log::info($originalPath . " was moved to " . $path);
});
Usage
Triggers
Class or file | Line |
---|---|
Backend\Widgets\MediaManager
|
428 |
Copyright © 2024 Winter CMS