2022-07-07 06:49:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\CMS\Controllers;
|
|
|
|
|
2024-01-18 22:00:46 +01:00
|
|
|
use SilverStripe\Admin\LeftAndMain;
|
2022-07-07 06:49:24 +02:00
|
|
|
use SilverStripe\CMS\Controllers\CMSMain;
|
|
|
|
use SilverStripe\Core\Extension;
|
|
|
|
|
2024-01-18 22:00:46 +01:00
|
|
|
/**
|
|
|
|
* @extends Extension<LeftAndMain>
|
|
|
|
*/
|
2022-07-07 06:49:24 +02:00
|
|
|
class LeftAndMainBatchActionsExtension extends Extension
|
|
|
|
{
|
|
|
|
public function updateBatchActionsForm(&$form)
|
|
|
|
{
|
|
|
|
$cmsMain = singleton(CMSMain::class);
|
|
|
|
$form->Fields()->insertAfter('Action', $cmsMain->BatchActionParameters());
|
|
|
|
return $form;
|
|
|
|
}
|
2022-07-07 20:46:22 +02:00
|
|
|
}
|