generated from Nodarx/template
d619693460
Signed-off-by: Sebastian <krupinski01@gmail.com>
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace KTXM\MediaViewer;
|
|
|
|
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 'media_viewer';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Media Viewer';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Provides inline image and video preview via the file viewer integration point, reusable across modules such as Documents and Mail.';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'MediaViewer', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|