Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Vector\SkinVector Class Reference
+ Inheritance diagram for Vector\SkinVector:
+ Collaboration diagram for Vector\SkinVector:

Public Member Functions

 getDefaultModules ()
 Updates modules for use in legacy Vector skin. More...
 
 generateHTML ()
 Updates HTML generation for use in legacy Vector skin. More...
 
 getHtmlElementAttributes ()
 @inheritDoc
 
 getTemplateData ()
 @inheritDoc
 
 isResponsive ()
 @inheritDoc
 

Protected Member Functions

 isLegacy ()
 Whether the legacy version of the skin is being used. More...
 
 getLanguagesCached ()
 Calls getLanguages with caching. More...
 
 isLanguagesInContentAt ( $location)
 
 shouldHideLanguages ()
 Show the ULS button if it's modern Vector, languages in header is enabled, and the language array isn't empty. More...
 
 runOnSkinTemplateNavigationHooks (SkinTemplate $skin, &$content_navigation)
 @inheritDoc
 

Member Function Documentation

◆ generateHTML()

Vector\SkinVector::generateHTML ( )

Updates HTML generation for use in legacy Vector skin.

Do not repeat this pattern. Will be addressed in T291098.

@inheritDoc

◆ getDefaultModules()

Vector\SkinVector::getDefaultModules ( )

Updates modules for use in legacy Vector skin.

Do not repeat this pattern. Will be addressed in T291098. @inheritDoc

◆ getLanguagesCached()

Vector\SkinVector::getLanguagesCached ( )
protected

Calls getLanguages with caching.

Returns
array

◆ isLanguagesInContentAt()

Vector\SkinVector::isLanguagesInContentAt (   $location)
protected
Parameters
string$locationEither 'top' or 'bottom' is accepted.
Returns
bool

◆ isLegacy()

Vector\SkinVector::isLegacy ( )
protected

Whether the legacy version of the skin is being used.

Returns
bool

◆ shouldHideLanguages()

Vector\SkinVector::shouldHideLanguages ( )
protected

Show the ULS button if it's modern Vector, languages in header is enabled, and the language array isn't empty.

Hide it otherwise.

Returns
bool

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