BiFace_Server_Lite/vendor/dmstr/yii2-adminlte-asset/helpers/AdminLteHelper.php
2020-03-27 10:13:51 +07:00

24 lines
637 B
PHP

<?php
namespace dmstr\helpers;
use Yii;
class AdminLteHelper
{
/**
* It allows you to get the name of the css class.
* You can add the appropriate class to the body tag for dynamic change the template's appearance.
* Note: Use this fucntion only if you override the skin through configuration.
* Otherwise you will not get the correct css class of body.
*
* @return string
*/
public static function skinClass()
{
/** @var \dmstr\web\AdminLteAsset $bundle */
$bundle = Yii::$app->assetManager->getBundle('dmstr\web\AdminLteAsset');
return $bundle->skin;
}
}