silverstripe-cms/code/Controllers/LeftAndMainBatchActionsExtension.php

21 lines
478 B
PHP
Raw Normal View History

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