MediaWiki master
|
Inject table of contents (or empty string if there's no sections) More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (TidyDriverBase $tidy) | |
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) | |
Inject table of contents (or empty string if there's no sections)
Definition at line 22 of file HandleTOCMarkers.php.
MediaWiki\OutputTransform\Stages\HandleTOCMarkers::__construct | ( | TidyDriverBase | $tidy | ) |
Definition at line 26 of file HandleTOCMarkers.php.
MediaWiki\OutputTransform\Stages\HandleTOCMarkers::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 30 of file HandleTOCMarkers.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 34 of file HandleTOCMarkers.php.