Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks Class Reference
Inheritance diagram for MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks:

Public Member Functions

 __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.
 

Static Public Member Functions

static getInstance ()
 
static onCodeEditorGetPageLanguage (Title $title, ?string &$lang, string $model)
 Hook: CodeEditorGetPageLanguage.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Author
Niklas Laxström @license GPL-2.0-or-later
Since
2021.05

Definition at line 33 of file Hooks.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::__construct ( LoggerInterface $logger,
MessageBundleStore $messageBundleStore,
LinkRenderer $linkRenderer,
TitleFactory $titleFactory,
JobQueueGroup $jobQueueGroup,
bool $enableIntegration )

Definition at line 46 of file Hooks.php.

Member Function Documentation

◆ getInstance()

static MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::getInstance ( )
static

Definition at line 62 of file Hooks.php.

◆ 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 )

@inheritDoc

Definition at line 76 of file Hooks.php.

◆ onPageSaveComplete()

MediaWiki\Extension\Translate\MessageBundleTranslation\Hooks::onPageSaveComplete ( $wikiPage,
$user,
$summary,
$flags,
$revisionRecord,
$editResult )

@inheritDoc

Definition at line 98 of file Hooks.php.

Member Data Documentation

◆ 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: