feat(main): conform to Websmid module standards

This commit is contained in:
2026-06-23 13:18:57 +02:00
parent 9e6c26da38
commit 6aff506cd6
3 changed files with 10 additions and 8 deletions
+7
View File
@@ -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 = [])
{