MediaWiki
REL1_40
SkinComponentUtils.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Skin
;
4
5
class
SkinComponentUtils
{
15
public
static
function
addClassToClassList
( $class,
string
$newClass ) {
16
if
( is_array( $class ) ) {
17
$class[] = $newClass;
18
}
else
{
19
$class .=
' '
. $newClass;
20
$class = trim( $class );
21
}
22
return
$class;
23
}
24
}
MediaWiki\Skin\SkinComponentUtils
Definition
SkinComponentUtils.php:5
MediaWiki\Skin\SkinComponentUtils\addClassToClassList
static addClassToClassList( $class, string $newClass)
Adds a class to the existing class value, supporting it as a string or array.
Definition
SkinComponentUtils.php:15
MediaWiki\Skin
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
Definition
ComponentRegistryContext.php:19
includes
skins
components
SkinComponentUtils.php
Generated on Thu Jun 27 2024 14:04:12 for MediaWiki by
1.10.0