MediaWiki REL1_35
MediaWiki\Revision\SlotRenderingProvider Interface Reference

A lazy provider of ParserOutput objects for a revision's individual slots. More...

Inheritance diagram for MediaWiki\Revision\SlotRenderingProvider:

Public Member Functions

 getSlotParserOutput ( $role, array $hints=[])
 

Detailed Description

A lazy provider of ParserOutput objects for a revision's individual slots.

Since
1.32

Definition at line 12 of file SlotRenderingProvider.php.

Member Function Documentation

◆ getSlotParserOutput()

MediaWiki\Revision\SlotRenderingProvider::getSlotParserOutput (   $role,
array  $hints = [] 
)
Parameters
string$role
array$hintsHints given as an associative array. Known keys:
  • 'generate-html' => bool: Whether the caller is interested in output HTML (as opposed to just meta-data). Default is to generate HTML.
Exceptions
SuppressedDataExceptionif the content is not accessible for the audience specified in the constructor.
Returns
ParserOutput

Implemented in MediaWiki\Revision\RenderedRevision.


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