Translate extension for MediaWiki
Loading...
Searching...
No Matches
MessageDefinitionAid.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\TranslatorInterface\Aid;
5
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
}
MediaWiki\Extension\Translate\TranslatorInterface\Aid\MessageDefinitionAid
Translation aid that provides the message definition.
Definition
MessageDefinitionAid.php:14
MediaWiki\Extension\Translate\TranslatorInterface\Aid\MessageDefinitionAid\getData
getData()
Translation aid class should implement this function.
Definition
MessageDefinitionAid.php:15
MediaWiki\Extension\Translate\TranslatorInterface\Aid\TranslationAid
Definition
TranslationAid.php:21
src
TranslatorInterface
Aid
MessageDefinitionAid.php
Generated by
1.10.0