MediaWiki master
|
Applies base href, and strip everything but the <body> More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (LoggerInterface $logger) | |
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) | |
Applies base href, and strip everything but the <body>
Definition at line 18 of file ExtractBody.php.
MediaWiki\OutputTransform\Stages\ExtractBody::__construct | ( | LoggerInterface | $logger | ) |
Definition at line 22 of file ExtractBody.php.
MediaWiki\OutputTransform\Stages\ExtractBody::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 26 of file ExtractBody.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 65 of file ExtractBody.php.
References $matches.