silverstripe-cms/code/Controllers/LeftAndMainBatchActionsExtension.php

17 lines
399 B
PHP

<?php
namespace SilverStripe\CMS\Controllers;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\Core\Extension;
class LeftAndMainBatchActionsExtension extends Extension
{
public function updateBatchActionsForm(&$form)
{
$cmsMain = singleton(CMSMain::class);
$form->Fields()->insertAfter('Action', $cmsMain->BatchActionParameters());
return $form;
}
}