On continue à adapter le template...

This commit is contained in:
2021-04-16 19:23:51 +02:00
parent 1e2e612349
commit c160eb2141
127 changed files with 42260 additions and 36 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Selection\Hook;
use Selection\Selection;
use Thelia\Core\Event\Hook\HookRenderBlockEvent;
use Thelia\Core\Hook\BaseHook;
use Thelia\Tools\URL;
/***
* Class BackHook
* @package Selection\Hook
* @author Maxime Bruchet <mbruchet@openstudio.fr>
*/
class BackHook extends BaseHook
{
/***
* Hook Selection module to the sidebar in tools menu
*
* @param HookRenderBlockEvent $event
*/
public function onMainTopMenuTools(HookRenderBlockEvent $event)
{
$event->add(
[
'id' => 'tools_menu_selection',
'class' => '',
'url' => URL::getInstance()->absoluteUrl('/admin/selection'),
'title' => $this->trans('Selections', [], Selection::DOMAIN_NAME)
]
);
}
}