|
| __construct (LoggerInterface $logger, MessageBundleStore $messageBundleStore, LinkRenderer $linkRenderer, TitleFactory $titleFactory, JobQueueGroup $jobQueueGroup, bool $enableIntegration) |
|
| onEditFilterMergedContent (IContextSource $context, Content $content, Status $status, $summary, User $user, $minoredit) |
| @inheritDoc
|
|
| onPageSaveComplete ( $wikiPage, $user, $summary, $flags, $revisionRecord, $editResult) |
| @inheritDoc
|
|
| onArticleViewHeader ( $article, &$outputDone, &$pcache) |
| Hook: ArticleViewHeader.
|
|
- Author
- Niklas Laxström @license GPL-2.0-or-later
- Since
- 2021.05
Definition at line 33 of file Hooks.php.
◆ __construct()
MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::__construct |
( |
LoggerInterface | $logger, |
|
|
MessageBundleStore | $messageBundleStore, |
|
|
LinkRenderer | $linkRenderer, |
|
|
TitleFactory | $titleFactory, |
|
|
JobQueueGroup | $jobQueueGroup, |
|
|
bool | $enableIntegration ) |
◆ getInstance()
static MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::getInstance |
( |
| ) |
|
|
static |
◆ onArticleViewHeader()
MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::onArticleViewHeader |
( |
| $article, |
|
|
& | $outputDone, |
|
|
& | $pcache ) |
Hook: ArticleViewHeader.
- Parameters
-
Article | $article | |
bool | ParserOutput | null | &$outputDone | |
bool | &$pcache | |
Definition at line 167 of file Hooks.php.
◆ onCodeEditorGetPageLanguage()
static MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::onCodeEditorGetPageLanguage |
( |
Title | $title, |
|
|
?string & | $lang, |
|
|
string | $model ) |
|
static |
Hook: CodeEditorGetPageLanguage.
Definition at line 154 of file Hooks.php.
◆ onEditFilterMergedContent()
MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::onEditFilterMergedContent |
( |
IContextSource | $context, |
|
|
Content | $content, |
|
|
Status | $status, |
|
|
| $summary, |
|
|
User | $user, |
|
|
| $minoredit ) |
◆ onPageSaveComplete()
MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::onPageSaveComplete |
( |
| $wikiPage, |
|
|
| $user, |
|
|
| $summary, |
|
|
| $flags, |
|
|
| $revisionRecord, |
|
|
| $editResult ) |
◆ CONSTRUCTOR_OPTIONS
const MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::CONSTRUCTOR_OPTIONS |
Initial value:= [
'TranslateEnableMessageBundleIntegration',
]
Definition at line 34 of file Hooks.php.
The documentation for this class was generated from the following file: