Debian Codegraph @

vendor/wikimedia/parsoid/src/ParserTests/DummyAnnotation.php

raw
1 <?php
2 declare( strict_types = 1 );
3
4 namespace Wikimedia\Parsoid\ParserTests;
5
6 use Wikimedia\Parsoid\Ext\ExtensionModule;
7 use Wikimedia\Parsoid\Ext\ExtensionTagHandler;
8
9 /**
10 * Dummy annotation to test the annotation mechanisms outside of any extension-specific
11 * considerations.
12 */
13 class DummyAnnotation extends ExtensionTagHandler implements ExtensionModule {
14 /** @inheritDoc */
15 public function getConfig(): array {
16 return [
17 'name' => 'DummyAnnotation',
18 // If these are not the same length as "translate" and "tvar"
19 // respectively, it requires adjusting wtOffsets in the (large) test file.
20 'annotations' => [ 'dummyanno', 'ann2' ]
21 ];
22 }
23 }