MediaWiki  master
MediaWiki\Content\Renderer\ContentRenderer Class Reference

A service to render content. More...

Collaboration diagram for MediaWiki\Content\Renderer\ContentRenderer:

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. More...
 

Private Attributes

IContentHandlerFactory $contentHandlerFactory
 

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.

References MediaWiki\Content\Renderer\ContentRenderer\$contentHandlerFactory.

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.

References $content.

Member Data Documentation

◆ $contentHandlerFactory

IContentHandlerFactory MediaWiki\Content\Renderer\ContentRenderer::$contentHandlerFactory
private

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