Debian Codegraph @

includes/Revision/SlotRenderingProvider.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Revision;
4
5 use MediaWiki\Parser\ParserOutput;
6
7 /**
8 * A lazy provider of ParserOutput objects for a revision's individual slots.
9 *
10 * @since 1.32
11 */
12 interface SlotRenderingProvider {
13
14 /**
15 * @param string $role
16 * @param array $hints Hints given as an associative array. Known keys:
17 * - 'generate-html' => bool: Whether the caller is interested in output HTML (as opposed
18 * to just meta-data). Default is to generate HTML.
19 *
20 * @throws SuppressedDataException if the content is not accessible for the audience
21 * specified in the constructor.
22 * @return ParserOutput
23 */
24 public function getSlotParserOutput( $role, array $hints = [] );
25
26 }