Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5966583
ContentAlterParserOutputHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ContentAlterParserOutputHook.php
View Options
<?php
namespace
MediaWiki\Content\Hook
;
use
MediaWiki\Content\Content
;
use
MediaWiki\Parser\ParserOutput
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ContentAlterParserOutput" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ContentAlterParserOutputHook
{
/**
* Use this hook to modify parser output for a given content object. This hook is called by
* Content::getParserOutput after parsing has finished. Can be used for changes that depend
* on the result of the parsing but have to be done before LinksUpdate is called (such as
* adding tracking categories based on the rendered HTML).
*
* @since 1.35
*
* @param Content $content Content to render
* @param Title $title Title of the page, as context
* @param ParserOutput $parserOutput ParserOutput to manipulate
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onContentAlterParserOutput
(
$content
,
$title
,
$parserOutput
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 11:44 (4 d, 23 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8e/16/feafe0b0d82f5db1a92c4757735c
Default Alt Text
ContentAlterParserOutputHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment