MediaWiki master
MediaWiki\Skin\SkinComponentLogo Class Reference

Inherits MediaWiki\Skin\SkinComponent.

Collaboration diagram for MediaWiki\Skin\SkinComponentLogo:

Public Member Functions

 __construct (Config $config, Language $language)
 
 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.
Since 1.35 (all fields optional):
 

Detailed Description

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

Definition at line 29 of file SkinComponentLogo.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentLogo::__construct ( Config $config,
Language $language )
Parameters
Config$config
Language$language

Definition at line 39 of file SkinComponentLogo.php.

References Language\getCode().

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skin\SkinComponentLogo::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.
Since 1.35 (all fields optional):

  • string 1x Path to a square icon at 1x resolution
  • string 2x Path to a square icon at 2x resolution
  • string icon Path to a square icon
  • array wordmark with src, width, height and style keys.
  • array tagline with src, width, height and style keys.

Implements MediaWiki\Skin\SkinComponent.

Definition at line 67 of file SkinComponentLogo.php.


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