public function saveAttribute()
    {
        $language = current($this->getLanguages());
        if ($language !== Yii::$app->language) {
            $this->identity->{$this->languageAttribute} = Yii::$app->language;
            $this->identity->save(true, [$this->languageAttribute]);
        }
    }
public function saveAttribute()
    {
        $language = current($this->getLanguages());
        if ($language !== Yii::$app->language) {
            $this->identity->{$this->languageAttribute} = Yii::$app->language;
            $this->identity->save(true, [$this->languageAttribute]);
        }
    }
public function saveAttribute ( ) { $ language = current ( $ this -> getLanguages ( ) ) ; if ( $ language !== Yii :: $ app -> language ) { $ this -> identity -> { $ this -> languageAttribute } = Yii :: $ app -> language ; $ this -> identity -> save ( true , [ $ this -> languageAttribute ] ) ; } }
Saves the language attribute.
Saves the language attribute .