src/models/Lang.php
public static function findActive()
    {
        if (self::$_langInstanceFindActive === null) {
            $langShortCode = Yii::$app->composition->getKey('langShortCode');
    
            if (!$langShortCode) {
                self::$_langInstanceFindActive = self::getDefault();
            } else {
                self::$_langInstanceFindActive = self::find()->where(['short_code' => $langShortCode, 'is_deleted' => false])->asArray()->one();
            }
        }
        
        return self::$_langInstanceFindActive;
    }
public static function findActive()
    {
        if (self::$_langInstanceFindActive === null) {
            $langShortCode = Yii::$app->composition->getKey('langShortCode');
    
            if (!$langShortCode) {
                self::$_langInstanceFindActive = self::getDefault();
            } else {
                self::$_langInstanceFindActive = self::find()->where(['short_code' => $langShortCode, 'is_deleted' => false])->asArray()->one();
            }
        }
        
        return self::$_langInstanceFindActive;
    }
public static function findActive ( ) { if ( self :: $ _langInstanceFindActive === null ) { $ langShortCode = Yii :: $ app -> composition -> getKey ( 'langShortCode' ) ; if ( ! $ langShortCode ) { self :: $ _langInstanceFindActive = self :: getDefault ( ) ; } else { self :: $ _langInstanceFindActive = self :: find ( ) -> where ( [ 'short_code' => $ langShortCode , 'is_deleted' => false ] ) -> asArray ( ) -> one ( ) ; } } return self :: $ _langInstanceFindActive ; }
Get the active langauge array

@return array
Get the active langauge array