|
| __construct (LanguageConverterFactory $languageConverterFactory, FeatureManagerFactory $featureManagerFactory, array $options) |
|
| isResponsive () |
| @inheritDoc
|
|
| getHtmlElementAttributes () |
| @inheritDoc
|
|
| getTemplateData () |
|
◆ getLanguagesCached()
MediaWiki\Skins\Vector\SkinVector22::getLanguagesCached |
( |
| ) |
|
|
protected |
Calls getLanguages with caching.
- Returns
- array
◆ getTemplateData()
MediaWiki\Skins\Vector\SkinVector22::getTemplateData |
( |
| ) |
|
◆ getULSLabels()
MediaWiki\Skins\Vector\SkinVector22::getULSLabels |
( |
| ) |
|
|
finalprotected |
Get the ULS button label, accounting for the number of available languages.
- Returns
- array
◆ isLanguagesInContent()
MediaWiki\Skins\Vector\SkinVector22::isLanguagesInContent |
( |
| ) |
|
|
finalprotected |
Whether or not the languages are out of the sidebar and in the content either at the top or the bottom.
- Returns
- bool
◆ isLanguagesInContentAt()
MediaWiki\Skins\Vector\SkinVector22::isLanguagesInContentAt |
( |
string | $location | ) |
|
|
protected |
- Parameters
-
string | $location | Either 'top' or 'bottom' is accepted. |
- Returns
- bool
◆ isULSExtensionEnabled()
MediaWiki\Skins\Vector\SkinVector22::isULSExtensionEnabled |
( |
| ) |
|
|
finalprotected |
Check whether ULS is enabled.
- Returns
- bool
◆ isVisualEditorTabPositionFirst()
MediaWiki\Skins\Vector\SkinVector22::isVisualEditorTabPositionFirst |
( |
| $dataViews | ) |
|
|
finalprotected |
Check whether Visual Editor Tab Position is first.
- Parameters
-
- Returns
- bool
◆ shouldHideLanguages()
MediaWiki\Skins\Vector\SkinVector22::shouldHideLanguages |
( |
| ) |
|
|
protected |
Show the ULS button if it's modern Vector, languages in header is enabled, the ULS extension is enabled, and we are on a subect page.
Hide it otherwise. There is no point in showing the language button if ULS extension is unavailable as there is no ways to add languages without it.
- Returns
- bool
The documentation for this class was generated from the following file:
- includes/SkinVector22.php