Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
TranslateExt | |
0.00% |
0 / 11 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getConfig | |
0.00% |
0 / 11 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\PageTranslation; |
5 | |
6 | use Wikimedia\Parsoid\Ext\ExtensionModule; |
7 | |
8 | class TranslateExt implements ExtensionModule { |
9 | |
10 | /** @inheritDoc */ |
11 | public function getConfig(): array { |
12 | return [ |
13 | 'name' => 'Translate', |
14 | 'annotations' => [ |
15 | 'tagNames' => [ 'translate', 'tvar' ], |
16 | 'annotationStripper' => |
17 | [ |
18 | 'class' => TranslateAnnotationStripper::class, |
19 | 'services' => [ 'Translate:TranslatablePageParser' ] |
20 | ], |
21 | ], |
22 | ]; |
23 | } |
24 | } |