On continue à adapter le template...
This commit is contained in:
33
local/modules/Selection/Hook/BackHook.php
Normal file
33
local/modules/Selection/Hook/BackHook.php
Normal 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)
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user