Allows to add new buttons to the toolbar above the partial list (CMS/Partials page) in the Administration Area.
The event handler should accept the back-end controller object and use its renderPartial() method
to render new toolbar elements.
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onExtendPartialsToolbar', $this, 'extend_toolbar');
}
public function extend_toolbar($controller)
{
$controller->renderPartial(PATH_APP.'/modules/cmsext/partials/_toolbar.htm');
}
// Example of the _toolbar.htm partial
<div class="separator"> </div>
<?= backend_ctr_button('Some button', 'new_document', '#') ?>