MediaWiki REL1_39
MediaWiki\Skin\SkinComponentRegistry Class Reference

Public Member Functions

 __construct (SkinComponentRegistryContext $skinContext)
 
 getComponent (string $name)
 Get a component.
 
 getComponents ()
 Return all registered components.
 

Detailed Description

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

Definition at line 28 of file SkinComponentRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentRegistry::__construct ( SkinComponentRegistryContext  $skinContext)
Parameters
SkinComponentRegistryContext$skinContext

Definition at line 38 of file SkinComponentRegistry.php.

Member Function Documentation

◆ getComponent()

MediaWiki\Skin\SkinComponentRegistry::getComponent ( string  $name)

Get a component.

This method has side effects in that if registered components have been not initialized they will be registered as part of this method.

Parameters
string$name
Exceptions
RuntimeExceptionwith unknown name
Returns
SkinComponent

Definition at line 51 of file SkinComponentRegistry.php.

◆ getComponents()

MediaWiki\Skin\SkinComponentRegistry::getComponents ( )

Return all registered components.

Since
1.38
Returns
SkinComponent[]

Definition at line 68 of file SkinComponentRegistry.php.


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