Inital commit
This commit is contained in:
39
local/modules/BestSellers/Hook/HookManager.php
Normal file
39
local/modules/BestSellers/Hook/HookManager.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* */
|
||||
/* Copyright (c) Franck Allimant, CQFDev */
|
||||
/* email : thelia@cqfdev.fr */
|
||||
/* web : http://www.cqfdev.fr */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE */
|
||||
/* file that was distributed with this source code. */
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
/**
|
||||
* @author Franck Allimant <franck@cqfdev.fr>
|
||||
*
|
||||
* Creation date: 23/03/2015 12:09
|
||||
*/
|
||||
|
||||
namespace BestSellers\Hook;
|
||||
|
||||
use BestSellers\BestSellers;
|
||||
use Thelia\Core\Event\Hook\HookRenderBlockEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
use Thelia\Tools\URL;
|
||||
|
||||
class HookManager extends BaseHook
|
||||
{
|
||||
public function onMainTopMenuTools(HookRenderBlockEvent $event)
|
||||
{
|
||||
$event->add(
|
||||
[
|
||||
'id' => 'bestsellers_menu_tags',
|
||||
'class' => '',
|
||||
'url' => URL::getInstance()->absoluteUrl('/admin/best-sellers'),
|
||||
'title' => $this->trans("Best sellers", [], BestSellers::DOMAIN_NAME)
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user