MediaWiki REL1_40
MediaWiki\Content\Renderer\ContentRenderer Class Reference

A service to render content. More...

Public Member Functions

 __construct (IContentHandlerFactory $contentHandlerFactory)
 
 getParserOutput (Content $content, PageReference $page, ?int $revId=null, ?ParserOptions $parserOptions=null, bool $generateHtml=true)
 Returns a ParserOutput object containing information derived from this content.
 

Detailed Description

A service to render content.

Since
1.38

Definition at line 15 of file ContentRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Content\Renderer\ContentRenderer::__construct ( IContentHandlerFactory $contentHandlerFactory)
Parameters
IContentHandlerFactory$contentHandlerFactory

Definition at line 22 of file ContentRenderer.php.

Member Function Documentation

◆ getParserOutput()

MediaWiki\Content\Renderer\ContentRenderer::getParserOutput ( Content $content,
PageReference $page,
?int $revId = null,
?ParserOptions $parserOptions = null,
bool $generateHtml = true )

Returns a ParserOutput object containing information derived from this content.

Parameters
Content$content
PageReference$page
int | null$revId
ParserOptions | null$parserOptions
bool$generateHtml
Returns
ParserOutput

Definition at line 37 of file ContentRenderer.php.


The documentation for this class was generated from the following file: