MediaWiki master
OutputTransformStage.php
Go to the documentation of this file.
1<?php
2
4
7
23 public function shouldRun( ParserOutput $po, ?ParserOptions $popts, array $options = [] ): bool;
24
35 public function transform( ParserOutput $po, ?ParserOptions $popts, array &$options ): ParserOutput;
36}
ParserOutput is a rendering of a Content object or a message.
Set options of the Parser.
Classes implementing the OutputTransformStage aim at being added to a pipeline of transformations tha...
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.