MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry Class Reference

Model for a menu entry that represents a language selector for current title. More...

+ Inheritance diagram for MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry:
+ Collaboration diagram for MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry:

Public Member Functions

 __construct (Title $title, $doesPageHaveLanguages, MessageLocalizer $messageLocalizer, $isButton=false, $classes='', $label='mobile-frontend-language-article-heading')
 LanguageSelectorEntry constructor.
 
 getName ()
 @inheritDoc
 
 getCSSClasses ()
 @inheritDoc
 
 getComponents ()
 @inheritDoc
 

Detailed Description

Model for a menu entry that represents a language selector for current title.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry::__construct ( Title $title,
$doesPageHaveLanguages,
MessageLocalizer $messageLocalizer,
$isButton = false,
$classes = '',
$label = 'mobile-frontend-language-article-heading' )

LanguageSelectorEntry constructor.

Parameters
Title$titleCurrent Title
bool$doesPageHaveLanguagesWhether the page is also available in other languages or variants
MessageLocalizer$messageLocalizerUsed for translation texts
bool$isButton
string$classespage classes
string$labelMenu entry label and title

Member Function Documentation

◆ getComponents()

MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry::getComponents ( )

◆ getCSSClasses()

MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry::getCSSClasses ( )

◆ getName()

MediaWiki\Minerva\Menu\Entries\LanguageSelectorEntry::getName ( )

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