8 namespace MediaWiki\Revision
;
10 use MediaWiki\Storage\SuppressedDataException
;
14 * A lazy provider of ParserOutput objects for a revision's individual slots.
18 interface SlotRenderingProvider
{
22 * @param array $hints Hints given as an associative array. Known keys:
23 * - 'generate-html' => bool: Whether the caller is interested in output HTML (as opposed
24 * to just meta-data). Default is to generate HTML.
26 * @throws SuppressedDataException if the content is not accessible for the audience
27 * specified in the constructor.
28 * @return ParserOutput
30 public function getSlotParserOutput( $role, array $hints = [] );