public static function getLanguageRedirects($languageRedirects)
    {
        if (!$languageRedirects && isset(Yii::$app->params['languageRedirects'])) {
            $languageRedirects = Yii::$app->params['languageRedirects'];
        }

        return $languageRedirects;
    }
public static function getLanguageRedirects($languageRedirects)
    {
        if (!$languageRedirects && isset(Yii::$app->params['languageRedirects'])) {
            $languageRedirects = Yii::$app->params['languageRedirects'];
        }

        return $languageRedirects;
    }
public static function getLanguageRedirects ( $ languageRedirects ) { if ( ! $ languageRedirects && isset ( Yii :: $ app -> params [ 'languageRedirects' ] ) ) { $ languageRedirects = Yii :: $ app -> params [ 'languageRedirects' ] ; } return $ languageRedirects ; }
Validates and returns list of language redirects.

@param array $languageRedirects
@return array
Validates and returns list of language redirects .