wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Wikibase\Repo\ParserOutput;

use MediaWiki\Parser\ParserOutput;
use Wikibase\DataModel\Entity\EntityDocument;

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

    /**
     * Update extension data, properties or other data in ParserOutput.
     * These updates are invoked when EntityContent::getParserOutput is called.
     *
     * @param ParserOutput $parserOutput
     * @param EntityDocument $entity
     *
     * @return void
     */
    public function updateParserOutput( ParserOutput $parserOutput, EntityDocument $entity );

}