MediaWiki master
MediaWiki\Skin\SkinComponentMenu Class Reference

Inherits MediaWiki\Skin\SkinComponent.

Collaboration diagram for MediaWiki\Skin\SkinComponentMenu:

Public Member Functions

 __construct (string $name, array $items, MessageLocalizer $localizer, string $content='', array $linkOptions=[], string $htmlAfterContent='', string $htmlBeforeContent='')
 
 getTemplateData ()
 This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.
Returns
array Data related to component required to render.

 

Detailed Description

Access: internal
for use inside Skin and SkinTemplate classes only
Stability: unstable

Definition at line 15 of file SkinComponentMenu.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentMenu::__construct ( string $name,
array $items,
MessageLocalizer $localizer,
string $content = '',
array $linkOptions = [],
string $htmlAfterContent = '',
string $htmlBeforeContent = '' )
Parameters
string$name
array$items
MessageLocalizer$localizer
string$content
array$linkOptions
string$htmlAfterContent
string$htmlBeforeContent

Definition at line 47 of file SkinComponentMenu.php.

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skin\SkinComponentMenu::getTemplateData ( )

This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.

Returns
array Data related to component required to render.

Implements MediaWiki\Skin\SkinComponent.

Definition at line 95 of file SkinComponentMenu.php.


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