original_string: 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]);
          }
      }
code: 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]);
          }
      }
code_tokens: 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 ] ) ; } }
docstring: Saves the language attribute.
docstring_tokens: Saves the language attribute .