MediaWiki  1.34.0
Revision\SlotRenderingProvider Interface Reference

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

Inheritance diagram for 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 17 of file SlotRenderingProvider.php.

Member Function Documentation

◆ getSlotParserOutput()

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 Revision\RenderedRevision.


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