MediaWiki hook handlers for the Wikibase Lexeme extension.
More...
MediaWiki hook handlers for the Wikibase Lexeme extension.
- Copyright
- GPL-2.0-or-later
- Author
- Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
◆ getLexemeViewLanguages()
static Wikibase\Lexeme\WikibaseLexemeHooks::getLexemeViewLanguages |
( |
| ) |
|
|
static |
◆ onCanonicalNamespaces()
static Wikibase\Lexeme\WikibaseLexemeHooks::onCanonicalNamespaces |
( |
array & |
$namespaces | ) |
|
|
static |
◆ onInfoAction()
static Wikibase\Lexeme\WikibaseLexemeHooks::onInfoAction |
( |
IContextSource |
$context, |
|
|
array & |
$pageInfo |
|
) |
| |
|
static |
Adds the Wikis using the entity in action=info.
- Parameters
-
IContextSource | $context | |
array[] | &$pageInfo | |
◆ onParserOutputUpdaterConstruction()
static Wikibase\Lexeme\WikibaseLexemeHooks::onParserOutputUpdaterConstruction |
( |
CompositeStatementDataUpdater |
$statementUpdater, |
|
|
array & |
$entityUpdaters |
|
) |
| |
|
static |
◆ onScribuntoExternalLibraries()
static Wikibase\Lexeme\WikibaseLexemeHooks::onScribuntoExternalLibraries |
( |
|
$engine, |
|
|
array & |
$extraLibraries |
|
) |
| |
|
static |
◆ onWikibaseClientDataTypes()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseClientDataTypes |
( |
array & |
$dataTypeDefinitions | ) |
|
|
static |
◆ onWikibaseClientEntityTypes()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseClientEntityTypes |
( |
array & |
$entityTypeDefinitions | ) |
|
|
static |
Adds the definition of the lexeme entity type to the definitions array Wikibase uses.
- See also
- WikibaseLexeme.entitytypes.php
- Note
- This is bootstrap code, it is executed for EVERY request. Avoid instantiating objects or loading classes here!
- Parameters
-
array[] | $entityTypeDefinitions | |
◆ onWikibaseContentLanguages()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseContentLanguages |
( |
array & |
$contentLanguages | ) |
|
|
static |
◆ onWikibaseDataTypes()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseDataTypes |
( |
array & |
$dataTypeDefinitions | ) |
|
|
static |
Adds the definition of the data types related to lexeme to the definitions array Wikibase uses.
- See also
- WikibaseLexeme.datatypes.php
- Note
- This is bootstrap code, it is executed for EVERY request. Avoid instantiating objects or loading classes here!
- Parameters
-
array[] | $dataTypeDefinitions | |
◆ onWikibaseRepoEntityNamespaces()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseRepoEntityNamespaces |
( |
array & |
$entityNamespacesSetting | ) |
|
|
static |
Hook to register the lexeme and other entity namespaces for EntityNamespaceLookup.
- Parameters
-
int[] | $entityNamespacesSetting | |
◆ onWikibaseRepoEntityTypes()
static Wikibase\Lexeme\WikibaseLexemeHooks::onWikibaseRepoEntityTypes |
( |
array & |
$entityTypeDefinitions | ) |
|
|
static |
◆ registerNamespace()
static Wikibase\Lexeme\WikibaseLexemeHooks::registerNamespace |
( |
array |
$namespaces, |
|
|
|
$namespaceId, |
|
|
|
$namespaceName |
|
) |
| |
|
staticprivate |
- Parameters
-
string[] | $namespaces | |
int | $namespaceId | |
string | $namespaceName | |
- Returns
- string[]
- Exceptions
-
The documentation for this class was generated from the following file: