MediaWiki master
|
Wrap the output in a div with the provided class name. More...
Inherits MediaWiki\OutputTransform\ContentTextTransformStage.
Public Member Functions | |
__construct (ServiceOptions $options, LoggerInterface $logger, LanguageFactory $langFactory, Language $contentLang) | |
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 |
Wrap the output in a div with the provided class name.
Definition at line 18 of file AddWrapperDivClass.php.
MediaWiki\OutputTransform\Stages\AddWrapperDivClass::__construct | ( | ServiceOptions | $options, |
LoggerInterface | $logger, | ||
LanguageFactory | $langFactory, | ||
Language | $contentLang ) |
Definition at line 23 of file AddWrapperDivClass.php.
References MediaWiki\OutputTransform\OutputTransformStage\$logger, and MediaWiki\OutputTransform\OutputTransformStage\$options.
MediaWiki\OutputTransform\Stages\AddWrapperDivClass::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 32 of file AddWrapperDivClass.php.
|
protected |
Reimplemented from MediaWiki\OutputTransform\ContentTextTransformStage.
Definition at line 36 of file AddWrapperDivClass.php.