media.folder.rename

Called after a folder is renamed / moved

Example usage:

Event::listen('media.folder.rename', function ((\Backend\Widgets\MediaManager) $mediaWidget, (string) $originalPath, (string) $newPath) {
    \Log::info($originalPath . " was moved to " . $path);
});

Or

$mediaWidget->bindEvent('folder.rename', function ((string) $originalPath, (string) $newPath) {
    \Log::info($originalPath . " was moved to " . $path);
});

Usage

Triggers

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