original_string: public function languageSwitcher($model, $view = null)
      {
          $languages = ($model->getBehavior('multilingual')) ? $languages = $model->getBehavior('multilingual')->languages : [];
          
          return FormLanguageSwitcher::widget(['languages' => $languages, 'view' => $view]);
      }
code: public function languageSwitcher($model, $view = null)
      {
          $languages = ($model->getBehavior('multilingual')) ? $languages = $model->getBehavior('multilingual')->languages : [];
          
          return FormLanguageSwitcher::widget(['languages' => $languages, 'view' => $view]);
      }
code_tokens: public function languageSwitcher ( $ model , $ view = null ) { $ languages = ( $ model -> getBehavior ( 'multilingual' ) ) ? $ languages = $ model -> getBehavior ( 'multilingual' ) -> languages : [ ] ; return FormLanguageSwitcher :: widget ( [ 'languages' => $ languages , 'view' => $ view ] ) ; }
docstring: Renders form language switcher.
  
  @param \yii\base\Model $model
  @param string $view
  @return string
docstring_tokens: Renders form language switcher .