Ajout du module OrderStatusNotify

This commit is contained in:
2020-05-14 14:58:49 +02:00
parent 69385ce6d6
commit d3e8302015
22 changed files with 2793 additions and 0 deletions

View 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)
]
);
}
}