MediaWiki master
|
Add anchors and other heading formatting, and replace the section link placeholders. More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (ServiceOptions $options, LoggerInterface $logger, 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. | |
Public Member Functions inherited from MediaWiki\OutputTransform\OutputTransformStage | |
__construct (ServiceOptions $options, LoggerInterface $logger) | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Public Attributes inherited from MediaWiki\OutputTransform\OutputTransformStage | |
const | CONSTRUCTOR_OPTIONS = [] |
Protected Member Functions | |
transformText (string $text, ParserOutput $po, ?ParserOptions $popts, array &$options) | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\OutputTransform\OutputTransformStage | |
LoggerInterface | $logger |
ServiceOptions | $options |
Add anchors and other heading formatting, and replace the section link placeholders.
Definition at line 24 of file HandleSectionLinks.php.
MediaWiki\OutputTransform\Stages\HandleSectionLinks::__construct | ( | ServiceOptions | $options, |
LoggerInterface | $logger, | ||
TitleFactory | $titleFactory ) |
Definition at line 36 of file HandleSectionLinks.php.
References MediaWiki\OutputTransform\OutputTransformStage\$logger, and MediaWiki\OutputTransform\OutputTransformStage\$options.
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 |
Reimplemented from MediaWiki\OutputTransform\OutputTransformStage.
Definition at line 43 of file HandleSectionLinks.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 48 of file HandleSectionLinks.php.
const MediaWiki\OutputTransform\Stages\HandleSectionLinks::CONSTRUCTOR_OPTIONS |
Definition at line 32 of file HandleSectionLinks.php.