MediaWiki REL1_35
MediaWiki\Hook\SkinTemplateGetLanguageLinkHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 12 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: