Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
MessageDefinitionAid | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getData | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\TranslatorInterface\Aid; |
5 | |
6 | /** |
7 | * Translation aid that provides the message definition. |
8 | * This usually matches the content of the page ns:key/source_language. |
9 | * @ingroup TranslationAids |
10 | * @author Niklas Laxström |
11 | * @license GPL-2.0-or-later |
12 | * @since 2013-01-01 |
13 | */ |
14 | class MessageDefinitionAid extends TranslationAid { |
15 | public function getData(): array { |
16 | $language = $this->group->getSourceLanguage(); |
17 | |
18 | return [ |
19 | 'value' => $this->dataProvider->getDefinition(), |
20 | 'language' => $language, |
21 | ]; |
22 | } |
23 | } |