MediaWiki REL1_37
MediaWiki\Hook\SkinTemplateGetLanguageLinkHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\SkinTemplateGetLanguageLinkHook:

Public Member Functions

 onSkinTemplateGetLanguageLink (&$languageLink, $languageLinkTitle, $title, $outputPage)
 This hook is called after building the data for a language link from which the actual html is constructed.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file SkinTemplateGetLanguageLinkHook.php.

Member Function Documentation

◆ onSkinTemplateGetLanguageLink()

MediaWiki\Hook\SkinTemplateGetLanguageLinkHook::onSkinTemplateGetLanguageLink ( $languageLink,
  $languageLinkTitle,
  $title,
  $outputPage 
)

This hook is called after building the data for a language link from which the actual html is constructed.

Since
1.35
Parameters
array&$languageLinkArray containing data about the link. The following keys can be modified: href, text, title, class, lang, hreflang. Each of them is a string.
Title$languageLinkTitleTitle object belonging to the external language link
Title$titleTitle object of the page the link belongs to
OutputPage$outputPageOutputPage object the links are built from
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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