MediaWiki 1.42.1
|
An interface for creating language converters. More...
Public Member Functions | |
__construct (ServiceOptions $options, ObjectFactory $objectFactory, callable $defaultLanguage) | |
getLanguageConverter ( $language=null) | |
Provide a LanguageConverter for given language. | |
isConversionDisabled () | |
Whether to disable language variant conversion. | |
isLinkConversionDisabled () | |
Whether to disable language variant conversion for links. | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
An interface for creating language converters.
Definition at line 51 of file LanguageConverterFactory.php.
MediaWiki\Languages\LanguageConverterFactory::__construct | ( | ServiceOptions | $options, |
ObjectFactory | $objectFactory, | ||
callable | $defaultLanguage ) |
ServiceOptions | $options | |
ObjectFactory | $objectFactory | |
callable | $defaultLanguage | callback of "() : Language", should return default language. Used in getLanguageConverter when $language is null. |
Definition at line 135 of file LanguageConverterFactory.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), and MediaWiki\MainConfigNames\UsePigLatinVariant.
MediaWiki\Languages\LanguageConverterFactory::getLanguageConverter | ( | $language = null | ) |
Provide a LanguageConverter for given language.
Language | StubUserLang | null | $language | for which a LanguageConverter should be provided. If it is null, then the LanguageConverter provided for current content language as returned by the callback provided to the constructor. |
Definition at line 178 of file LanguageConverterFactory.php.
Referenced by ApiQueryInfo\__construct(), MediaWiki\Specials\SpecialMIMESearch\__construct(), MediaWiki\Specials\SpecialMostLinkedCategories\__construct(), MediaWiki\Specials\SpecialWantedCategories\__construct(), MediaWiki\Deferred\LinksUpdate\CategoryLinksTable\__construct(), MediaWiki\Specials\SpecialUnwatchedPages\__construct(), MediaWiki\Specials\SpecialFileDuplicateSearch\__construct(), MediaWiki\Specials\SpecialAncientPages\__construct(), MediaWiki\Specials\SpecialDeadendPages\__construct(), MediaWiki\Specials\SpecialFewestRevisions\__construct(), MediaWiki\Specials\SpecialUncategorizedPages\__construct(), MediaWiki\Specials\SpecialWithoutInterwiki\__construct(), MediaWiki\Specials\SpecialLonelyPages\__construct(), MediaWiki\Specials\SpecialListGroupRights\__construct(), MediaWiki\Search\TitleMatcher\__construct(), and MessageCache\__construct().
MediaWiki\Languages\LanguageConverterFactory::isConversionDisabled | ( | ) |
Whether to disable language variant conversion.
Definition at line 194 of file LanguageConverterFactory.php.
Referenced by MediaWiki\Parser\Parser\__construct().
MediaWiki\Languages\LanguageConverterFactory::isLinkConversionDisabled | ( | ) |
Whether to disable language variant conversion for links.
Definition at line 203 of file LanguageConverterFactory.php.
const MediaWiki\Languages\LanguageConverterFactory::CONSTRUCTOR_OPTIONS |
Definition at line 113 of file LanguageConverterFactory.php.