MediaWiki master
|
Adds RedirectHeader if it exists. More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
shouldRun (ParserOutput $po, ?ParserOptions $popts, array $options=[]) | |
Decides whether or not the stage should be run. | |
Public Member Functions inherited from MediaWiki\OutputTransform\ContentTextTransformStage | |
transform (ParserOutput $po, ?ParserOptions $popts, array &$options) | |
Transforms the input ParserOutput into the returned ParserOutput. | |
Protected Member Functions | |
transformText (string $text, ParserOutput $po, ?ParserOptions $popts, array &$options) | |
Adds RedirectHeader if it exists.
Definition at line 13 of file AddRedirectHeader.php.
MediaWiki\OutputTransform\Stages\AddRedirectHeader::shouldRun | ( | ParserOutput | $po, |
?ParserOptions | $popts, | ||
array | $options = [] ) |
Decides whether or not the stage should be run.
ParserOutput | $po |
ParserOptions | null | $popts | |
array | $options |
Implements MediaWiki\OutputTransform\OutputTransformStage.
Definition at line 15 of file AddRedirectHeader.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 19 of file AddRedirectHeader.php.