Well, we use JHtml for rendering the body of the modal for the batch commands but there are not many arguments passed neither some complex computation for this particular task. Therefore we can drop the JHtml and use JLayout directly here.
I already replaced all the old instances, so other devs can use as an example for their code.
The proposal is to remove the file batch.php from the html folder in v4.
Missing doc block and some spaces, minors. The code works, but before I go on and spent more time here I would like to hear if there are any objection for this. I suspect the path might not be optimal, depending on the renderer implementation (?)
I doubt anyone's actually doing this but if you shift something from using JHtml in full to not then it breaks overrides if someone is using JHtml's override system. Since we're being so anal retentive on B/C, it has to be said.
@mbabker if someone overrides libraries/cms/html/batch.php i guess whatever stuff the core uses want make any difference, they will write their own html part on their overrides. Am I overseeing stuff here?
+ <?php echo JLayoutHelper::render('joomla.html.batch.item', $dispalyData = array('extension' => 'com_banners')); ?>
typo I guess, also elsewhere in PR
$dispalyData
=>$displayData