MediaWiki
master
OutputTransformStage.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\OutputTransform
;
4
5
use
MediaWiki\Parser\ParserOutput
;
6
use
ParserOptions
;
7
14
interface
OutputTransformStage
{
23
public
function
shouldRun
(
ParserOutput
$po, ?
ParserOptions
$popts, array $options = [] ): bool;
24
35
public
function
transform
(
ParserOutput
$po, ?
ParserOptions
$popts, array &$options ):
ParserOutput
;
36
}
MediaWiki\Parser\ParserOutput
ParserOutput is a rendering of a Content object or a message.
Definition
ParserOutput.php:95
ParserOptions
Set options of the Parser.
Definition
ParserOptions.php:52
MediaWiki\OutputTransform\OutputTransformStage
Classes implementing the OutputTransformStage aim at being added to a pipeline of transformations tha...
Definition
OutputTransformStage.php:14
MediaWiki\OutputTransform\OutputTransformStage\shouldRun
shouldRun(ParserOutput $po, ?ParserOptions $popts, array $options=[])
Decides whether or not the stage should be run.
MediaWiki\OutputTransform\OutputTransformStage\transform
transform(ParserOutput $po, ?ParserOptions $popts, array &$options)
Transforms the input ParserOutput into the returned ParserOutput.
MediaWiki\OutputTransform
Definition
ContentDOMTransformStage.php:3
includes
OutputTransform
OutputTransformStage.php
Generated on Thu May 2 2024 13:23:49 for MediaWiki by
1.10.0