MediaWiki REL1_35
|
Stable to implement. More...
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. | |
Stable to implement.
Definition at line 13 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.
Page | $page | Page that was rendered |
Title | $title | Title of the rendered page |
ParserOutput | $parserOutput | ParserOutput resulting from rendering the page |
Implemented in MediaWiki\HookContainer\HookRunner.