mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 09:34:50 +02:00
29 lines
709 B
PHP
29 lines
709 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\HeaderActions\Storage\Wiki\Video\Script;
|
|
|
|
use App\Actions\Storage\Wiki\Video\Script\DeleteScriptAction as DeleteScript;
|
|
use App\Filament\HeaderActions\Storage\Base\DeleteHeaderAction;
|
|
use App\Models\BaseModel;
|
|
use App\Models\Wiki\Video\VideoScript;
|
|
|
|
/**
|
|
* Class DeleteScriptHeaderAction.
|
|
*/
|
|
class DeleteScriptHeaderAction extends DeleteHeaderAction
|
|
{
|
|
/**
|
|
* Get the underlying storage action.
|
|
*
|
|
* @param VideoScript $script
|
|
* @param array $fields
|
|
* @return DeleteScript
|
|
*/
|
|
protected function storageAction(BaseModel $script, array $fields): DeleteScript
|
|
{
|
|
return new DeleteScript($script);
|
|
}
|
|
}
|