MediaWiki REL1_40
MediaWiki\Skin\SkinComponentLink Class Reference

Inherits MediaWiki\Skin\SkinComponent.

Collaboration diagram for MediaWiki\Skin\SkinComponentLink:

Public Member Functions

 __construct (string $key, array $item, MessageLocalizer $localizer, array $options=[])
 
 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 30 of file SkinComponentLink.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentLink::__construct ( string $key,
array $item,
MessageLocalizer $localizer,
array $options = [] )
Parameters
string$key
array$item
MessageLocalizer$localizer
array$options

Definition at line 46 of file SkinComponentLink.php.

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skin\SkinComponentLink::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 265 of file SkinComponentLink.php.


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