|
MediaWiki master
|
A service to render content. More...
Public Member Functions | |
| __construct (IContentHandlerFactory $contentHandlerFactory, GlobalIdGenerator $globalIdGenerator) | |
| getParserOutput (Content $content, PageReference $page, ?RevisionRecord $revision=null, ?ParserOptions $parserOptions=null, $hints=[]) | |
| Returns a ParserOutput object containing information derived from this content. | |
| MediaWiki\Content\Renderer\ContentRenderer::__construct | ( | IContentHandlerFactory | $contentHandlerFactory, |
| GlobalIdGenerator | $globalIdGenerator ) |
Definition at line 21 of file ContentRenderer.php.
| MediaWiki\Content\Renderer\ContentRenderer::getParserOutput | ( | Content | $content, |
| PageReference | $page, | ||
| ?RevisionRecord | $revision = null, | ||
| ?ParserOptions | $parserOptions = null, | ||
| $hints = [] ) |
Returns a ParserOutput object containing information derived from this content.
| Content | $content | |
| PageReference | $page | |
| RevisionRecord | null | $revision | |
| ParserOptions | null | $parserOptions | |
| bool|array{generate-html?:bool,previous-output?:?ParserOutput} | $hints For back-compatibility, passing a bool is equivalent to setting the 'generate-html' hint. |
Definition at line 43 of file ContentRenderer.php.