MediaWiki master
MediaWiki\Content\ICodeHighlighterMetadata Interface Reference

Metadata needed to render highlighted code. More...

Inherited by MediaWiki\Content\CodeHighlighterMetadata.

Public Member Functions

 addToOutputPage (OutputPage $outputPage)
 Add this metadata to an OutputPage.
 
 addToParserOutput (ParserOutput $parserOutput)
 Add this metadata to a ParserOutput.
 

Detailed Description

Metadata needed to render highlighted code.

Implementations should apply all metadata they carry to the supplied output object, so callers do not need to know about each individual metadata type.

Since
1.47

Definition at line 17 of file ICodeHighlighterMetadata.php.

Member Function Documentation

◆ addToOutputPage()

MediaWiki\Content\ICodeHighlighterMetadata::addToOutputPage ( OutputPage $outputPage)

Add this metadata to an OutputPage.

Parameters
OutputPage$outputPage

Implemented in MediaWiki\Content\CodeHighlighterMetadata.

◆ addToParserOutput()

MediaWiki\Content\ICodeHighlighterMetadata::addToParserOutput ( ParserOutput $parserOutput)

Add this metadata to a ParserOutput.

Parameters
ParserOutput$parserOutput

Implemented in MediaWiki\Content\CodeHighlighterMetadata.


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