MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onOpportunisticLinksUpdate ( $page, $title, $parserOutput) | |
This hook is called by WikiPage::triggerOpportunisticLinksUpdate when a page view triggers a re-rendering of the page. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "OpportunisticLinksUpdate" to register handlers implementing this interface.
Definition at line 16 of file OpportunisticLinksUpdateHook.php.
MediaWiki\Page\Hook\OpportunisticLinksUpdateHook::onOpportunisticLinksUpdate | ( | $page, | |
$title, | |||
$parserOutput ) |
This hook is called by WikiPage::triggerOpportunisticLinksUpdate when a page view triggers a re-rendering of the page.
This may happen particularly if the parser cache is split by user language, and no cached rendering of the page exists in the user's language. The hook is called before checking whether page_links_updated indicates that the links are up to date.
WikiPage | $page | WikiPage that was rendered |
Title | $title | Title of the rendered page |
ParserOutput | $parserOutput | ParserOutput resulting from rendering the page |
Implemented in MediaWiki\HookContainer\HookRunner.