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