feat(main): conform to Websmid module standards
This commit is contained in:
@@ -2,10 +2,17 @@
|
||||
|
||||
namespace Websmid\CustomHtml\Module;
|
||||
|
||||
use Tools;
|
||||
|
||||
trait AdminHooks
|
||||
{
|
||||
public function isUsingNewTranslationSystem(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getContent()
|
||||
{
|
||||
Tools::redirectAdmin($this->get('router')->generate('customhtml_index'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Websmid\CustomHtml\Module;
|
||||
use Websmid\CustomHtml\Model\CustomHtml;
|
||||
use Context;
|
||||
|
||||
trait FrontHooks
|
||||
trait DisplayHooks
|
||||
{
|
||||
public function renderWidget($hookName = null, array $configuration = [])
|
||||
{
|
||||
Reference in New Issue
Block a user