media.folder.move

Called after a folder is moved

Example usage:

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

Or

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

Usage

Triggers

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