29 protected array $modules = [],
30 protected array $moduleStyles = [],
31 protected array $categories = [],
32 protected array $warnings = [],
37 $parserOutput->addModules( $this->modules );
39 foreach ( $this->categories as $category ) {
42 foreach ( $this->warnings as $warning ) {
48 $outputPage->addModules( $this->modules );
Default metadata implementation for highlighted code.
__construct(protected array $modules=[], protected array $moduleStyles=[], protected array $categories=[], protected array $warnings=[],)
addToParserOutput(ParserOutput $parserOutput)
Add this metadata to a ParserOutput.
addToOutputPage(OutputPage $outputPage)
Add this metadata to an OutputPage.
This is one of the Core classes and should be read at least once by any new developers.
addModuleStyles( $modules)
Load the styles of one or more style-only ResourceLoader modules on this page.
Metadata needed to render highlighted code.