generated from Nodarx/template
64706041cb
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace KTXM\Themer;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'themer';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Appearance';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Theme selection and customization for users and tenants.';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'themer' => [
|
|
'label' => 'Access Appearance Settings',
|
|
'description' => 'View and access the appearance settings module',
|
|
'group' => 'Themer'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'Themer', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|