Blame view

vendor/dmstr/yii2-adminlte-asset/helpers/AdminLteHelper.php 637 Bytes
e9aa73b0   andryeyev   + adminLte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?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;
      }
  }