Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Hooks\ParserOutputUpdateHookHandler Class Reference
+ Inheritance diagram for Wikibase\Client\Hooks\ParserOutputUpdateHookHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\ParserOutputUpdateHookHandler:

Public Member Functions

 __construct (NamespaceChecker $namespaceChecker, LangLinkHandlerFactory $langLinkHandlerFactory, ClientParserOutputDataUpdater $parserOutputDataUpdater, EntityUsageFactory $entityUsageFactory)
 
 onContentAlterParserOutput ( $content, $title, $parserOutput)
 Handler for the ContentAlterParserOutput hook, which runs after internal parsing. More...
 
 doContentAlterParserOutput (Title $title, ParserOutput $parserOutput)
 

Static Public Member Functions

static factory (EntityIdParser $entityIdParser, NamespaceChecker $namespaceChecker)
 

Private Attributes

 $namespaceChecker
 
 $langLinkHandlerFactory
 
 $parserOutputDataUpdater
 
 $entityUsageFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::__construct ( NamespaceChecker  $namespaceChecker,
LangLinkHandlerFactory  $langLinkHandlerFactory,
ClientParserOutputDataUpdater  $parserOutputDataUpdater,
EntityUsageFactory  $entityUsageFactory 
)

Member Function Documentation

◆ doContentAlterParserOutput()

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::doContentAlterParserOutput ( Title  $title,
ParserOutput  $parserOutput 
)

◆ factory()

static Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::factory ( EntityIdParser  $entityIdParser,
NamespaceChecker  $namespaceChecker 
)
static

◆ onContentAlterParserOutput()

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::onContentAlterParserOutput (   $content,
  $title,
  $parserOutput 
)

Handler for the ContentAlterParserOutput hook, which runs after internal parsing.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ContentAlterParserOutput
Parameters
Content$content
Title$title
ParserOutput$parserOutput

Member Data Documentation

◆ $entityUsageFactory

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::$entityUsageFactory
private

◆ $langLinkHandlerFactory

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::$langLinkHandlerFactory
private

◆ $namespaceChecker

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::$namespaceChecker
private

◆ $parserOutputDataUpdater

Wikibase\Client\Hooks\ParserOutputUpdateHookHandler::$parserOutputDataUpdater
private

The documentation for this class was generated from the following file: