generated from Nodarx/template
Rename text editor provider and integration point
This commit is contained in:
+6
-6
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace KTXM\DocumentsTextEditor;
|
||||
namespace KTXM\ProviderEditorText;
|
||||
|
||||
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
||||
use KTXF\Module\Configuration\ModuleContextInterface;
|
||||
use KTXF\Module\ModuleInstanceAbstract;
|
||||
|
||||
/**
|
||||
* Documents Text Editor — provides inline editing for text, Markdown, and HTML files
|
||||
* via the documents_file_editor integration point.
|
||||
* Text Editor Provider — provides inline editing for text, Markdown, and HTML files
|
||||
* via the documents_editor integration point.
|
||||
*/
|
||||
class Module extends ModuleInstanceAbstract
|
||||
{
|
||||
@@ -18,12 +18,12 @@ class Module extends ModuleInstanceAbstract
|
||||
|
||||
public function handle(): string
|
||||
{
|
||||
return 'documents_text_editor';
|
||||
return 'provider_editor_text';
|
||||
}
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return 'Documents Text Editor';
|
||||
return 'Text Editor Provider';
|
||||
}
|
||||
|
||||
public function author(): string
|
||||
@@ -49,7 +49,7 @@ class Module extends ModuleInstanceAbstract
|
||||
public function configure(ModuleContextInterface $context): void
|
||||
{
|
||||
if ($context instanceof BrowserModuleContextInterface) {
|
||||
$context->registerModule($this, 'DocumentsTextEditor', 'static/module.mjs');
|
||||
$context->registerModule($this, 'ProviderEditorText', 'static/module.mjs');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user