Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
TranslateExt
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 getConfig
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
6use Wikimedia\Parsoid\Ext\ExtensionModule;
7
8class 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}