Debian Codegraph @

vendor/wikimedia/parsoid/src/Ext/ExtensionModule.php

raw
1 <?php
2 declare( strict_types = 1 );
3
4 namespace Wikimedia\Parsoid\Ext;
5
6 /**
7 * A Parsoid native extension module. This bundles up the configuration
8 * for a number of different ExtensionTagHandlers, ContentModelHandlers,
9 * and DomProcessors into one registered object. The only method required
10 * is `getConfig`.
11 *
12 * FIXME: This might be created on-demand by configuration data specified
13 * in extension.json.
14 */
15 interface ExtensionModule {
16
17 /**
18 * Return information about this extension module.
19 * FIXME: Add more expected fields or create a class for this
20 * FIXME: The 'name' is expected to be the same as the name defined
21 * at the top level of extension.json.
22 * @return array{name:string}
23 */
24 public function getConfig(): array;
25
26 }