MediaWiki master
|
Add anchors and other heading formatting, and replace the section link placeholders. More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (TitleFactory $titleFactory) | |
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) | |
Add anchors and other heading formatting, and replace the section link placeholders.
Definition at line 20 of file HandleSectionLinks.php.
MediaWiki\OutputTransform\Stages\HandleSectionLinks::__construct | ( | TitleFactory | $titleFactory | ) |
Definition at line 27 of file HandleSectionLinks.php.
MediaWiki\OutputTransform\Stages\HandleSectionLinks::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 31 of file HandleSectionLinks.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 36 of file HandleSectionLinks.php.