Inital commit
This commit is contained in:
22
core/lib/Thelia/Model/ModuleHook.php
Normal file
22
core/lib/Thelia/Model/ModuleHook.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Thelia\Model\Base\ModuleHook as BaseModuleHook;
|
||||
|
||||
class ModuleHook extends BaseModuleHook
|
||||
{
|
||||
use \Thelia\Model\Tools\ModelEventDispatcherTrait;
|
||||
|
||||
use \Thelia\Model\Tools\PositionManagementTrait;
|
||||
|
||||
const MAX_POSITION = 1000;
|
||||
|
||||
/**
|
||||
* Calculate next position relative to our default category
|
||||
*/
|
||||
protected function addCriteriaToPositionQuery($query)
|
||||
{
|
||||
$query->filterByHookId($this->getHookId());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user