mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
29 lines
631 B
PHP
29 lines
631 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Actions\Storage\Wiki\Video;
|
|
|
|
use App\Actions\Storage\Wiki\Video\DeleteVideoAction as DeleteVideo;
|
|
use App\Filament\Actions\Storage\Base\DeleteAction;
|
|
use App\Models\BaseModel;
|
|
use App\Models\Wiki\Video;
|
|
|
|
/**
|
|
* Class DeleteVideoAction.
|
|
*/
|
|
class DeleteVideoAction extends DeleteAction
|
|
{
|
|
/**
|
|
* Get the underlying storage action.
|
|
*
|
|
* @param Video $video
|
|
* @param array $fields
|
|
* @return DeleteVideo
|
|
*/
|
|
protected function storageAction(BaseModel $video, array $fields): DeleteVideo
|
|
{
|
|
return new DeleteVideo($video);
|
|
}
|
|
}
|