Provides a list of languages available for a page.
More...
|
| __construct (LanguageConverterFactory $languageConverterFactory, LanguageNameUtils $languageNameUtils, MobileContext $mobileContext) |
|
| execute ( $pagename) |
| Render the page with a list of languages the page is available in.
|
|
|
| processLanguages ( $data) |
| Processes languages to add 'langname' property, update 'url' property to mobile domain, and sort languages in case-insensitive order.
|
|
Provides a list of languages available for a page.
◆ __construct()
SpecialMobileLanguages::__construct |
( |
LanguageConverterFactory | $languageConverterFactory, |
|
|
LanguageNameUtils | $languageNameUtils, |
|
|
MobileContext | $mobileContext ) |
- Parameters
-
LanguageConverterFactory | $languageConverterFactory | |
LanguageNameUtils | $languageNameUtils | |
MobileContext | $mobileContext | |
◆ execute()
SpecialMobileLanguages::execute |
( |
| $pagename | ) |
|
Render the page with a list of languages the page is available in.
- Parameters
-
string | null | $pagename | The name of the page |
- Exceptions
-
◆ processLanguages()
SpecialMobileLanguages::processLanguages |
( |
| $data | ) |
|
|
protected |
Processes languages to add 'langname' property, update 'url' property to mobile domain, and sort languages in case-insensitive order.
- Parameters
-
array | $data | list of languages to process |
- Returns
- array list of processed languages
The documentation for this class was generated from the following file:
- includes/specials/SpecialMobileLanguages.php