Allows to add new buttons to the toolbar above the product list in the Administration Area.
The event handler should accept a single parameter - the controller object, which you can use to render a
partial containing additional buttons. Event handler example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onExtendProductsToolbar', $this, 'extend_products_toolbar');
}
public function extend_products_toolbar($controller)
{
$controller->renderPartial(PATH_APP.'/modules/mymodule/partials/_products_toolbar.htm');
}
// Example of the _products_toolbar.htm partial
<div class="separator"> </div>
<?= backend_ctr_button('My button', 'my_button_css_class', url('mymodule/manage/products')) ?>