31 lines
738 B
PHP
31 lines
738 B
PHP
<?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)
|
|
]
|
|
);
|
|
}
|
|
}
|
|
|
|
|