Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Hooks\WikibaseContentLanguagesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in MediaWiki core. More...

+ Inheritance diagram for Wikibase\Lib\Hooks\WikibaseContentLanguagesHook:

Public Member Functions

 onWikibaseContentLanguages (array &$contentLanguages)
 This hook is called to define the content languages per context.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in MediaWiki core.

Use the hook name "WikibaseContentLanguages" to register handlers implementing this interface.

Member Function Documentation

◆ onWikibaseContentLanguages()

Wikibase\Lib\Hooks\WikibaseContentLanguagesHook::onWikibaseContentLanguages ( array & $contentLanguages)

This hook is called to define the content languages per context.

Parameters
ContentLanguages[]&$contentLanguagesAn associative array mapping contexts ('term', 'monolingualtext', extension-specific…) to ContentLanguages objects.

Implemented in Wikibase\Client\Hooks\WikibaseContentLanguagesHandler, and Wikibase\Lib\Hooks\WikibaseLibHookRunner.


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