Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Loading...
Searching...
No Matches
MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents Class Reference

VectorComponentTableOfContents component. More...

+ Inheritance diagram for MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents:
+ Collaboration diagram for MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents:

Public Member Functions

 __construct (array $tocData, MessageLocalizer $localizer, Config $config, FeatureManager $featureManager)
 
 isPinned ()
 
 getTemplateData ()
 In tableOfContents.js we have tableOfContents::getTableOfContentsSectionsData(), that yields the same result as this function, please make sure to keep them in sync.
 

Public Attributes

const ID = 'vector-toc'
 

Detailed Description

VectorComponentTableOfContents component.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents::__construct ( array $tocData,
MessageLocalizer $localizer,
Config $config,
FeatureManager $featureManager )
Parameters
array$tocData
MessageLocalizer$localizer
Config$config
FeatureManager$featureManager

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents::getTemplateData ( )

In tableOfContents.js we have tableOfContents::getTableOfContentsSectionsData(), that yields the same result as this function, please make sure to keep them in sync.

@inheritDoc

Implements MediaWiki\Skins\Vector\Components\VectorComponent.

◆ isPinned()

MediaWiki\Skins\Vector\Components\VectorComponentTableOfContents::isPinned ( )
Returns
bool

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