Ajout du module OrderStatusNotify
This commit is contained in:
30
local/modules/OrderStatusNotify/Hook/BackHook.php
Normal file
30
local/modules/OrderStatusNotify/Hook/BackHook.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace OrderStatusNotify\Hook;
|
||||
|
||||
use OrderStatusNotify\OrderStatusNotify;
|
||||
use Thelia\Core\Event\Hook\HookRenderBlockEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
use Thelia\Tools\URL;
|
||||
|
||||
/**
|
||||
* Class BackHook
|
||||
* @package OrderStatusNotify\Hook
|
||||
* @author Laurent LE CORRE
|
||||
*/
|
||||
class BackHook extends BaseHook
|
||||
{
|
||||
public function onMainTopMenuTools(HookRenderBlockEvent $event)
|
||||
{
|
||||
$event->add(
|
||||
[
|
||||
'id' => 'tools_menu_orderstatusnotify',
|
||||
'class' => '',
|
||||
'url' => URL::getInstance()->absoluteUrl('/admin/module/orderstatusnotify'),
|
||||
'title' => $this->trans('Order status notification', [], OrderStatusNotify::DOMAIN_NAME)
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user