MediaWiki master
|
Inject table of contents (or empty string if there's no sections) More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (ServiceOptions $options, LoggerInterface $logger, TidyDriverBase $tidy) | |
shouldRun (ParserOutput $po, ?ParserOptions $popts, array $options=[]) | |
Decides whether or not the stage should be run. | |
![]() | |
transform (ParserOutput $po, ?ParserOptions $popts, array &$options) | |
Transforms the input ParserOutput into the returned ParserOutput. | |
![]() | |
__construct (ServiceOptions $options, LoggerInterface $logger) | |
Protected Member Functions | |
transformText (string $text, ParserOutput $po, ?ParserOptions $popts, array &$options) | |
Additional Inherited Members | |
![]() | |
const | CONSTRUCTOR_OPTIONS = [] |
![]() | |
LoggerInterface | $logger |
ServiceOptions | $options |
Inject table of contents (or empty string if there's no sections)
Definition at line 24 of file HandleTOCMarkers.php.
MediaWiki\OutputTransform\Stages\HandleTOCMarkers::__construct | ( | ServiceOptions | $options, |
LoggerInterface | $logger, | ||
TidyDriverBase | $tidy ) |
Definition at line 28 of file HandleTOCMarkers.php.
References MediaWiki\OutputTransform\OutputTransformStage\$logger, and MediaWiki\OutputTransform\OutputTransformStage\$options.
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 |
Reimplemented from MediaWiki\OutputTransform\OutputTransformStage.
Definition at line 35 of file HandleTOCMarkers.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 39 of file HandleTOCMarkers.php.