wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/ParserOutput/EntityParserOutputGenerator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\Repo\ParserOutput;

use InvalidArgumentException;
use MediaWiki\Parser\ParserOutput;
use Wikibase\Lib\Store\EntityRevision;

/**
 * @license GPL-2.0-or-later
 */
interface EntityParserOutputGenerator {

    /**
     * Creates the parser output for the given entity revision.
     *
     * @throws InvalidArgumentException
     * @return ParserOutput
     */
    public function getParserOutput(
        EntityRevision $entityRevision,
        bool $generateHtml = true
    );

}