public function languageSwitcher($model, $view = null)
    {
        $languages = ($model->getBehavior('multilingual')) ? $languages = $model->getBehavior('multilingual')->languages : [];
        
        return FormLanguageSwitcher::widget(['languages' => $languages, 'view' => $view]);
    }
public function languageSwitcher($model, $view = null)
    {
        $languages = ($model->getBehavior('multilingual')) ? $languages = $model->getBehavior('multilingual')->languages : [];
        
        return FormLanguageSwitcher::widget(['languages' => $languages, 'view' => $view]);
    }
public function languageSwitcher ( $ model , $ view = null ) { $ languages = ( $ model -> getBehavior ( 'multilingual' ) ) ? $ languages = $ model -> getBehavior ( 'multilingual' ) -> languages : [ ] ; return FormLanguageSwitcher :: widget ( [ 'languages' => $ languages , 'view' => $ view ] ) ; }
Renders form language switcher.

@param \yii\base\Model $model
@param string $view
@return string
Renders form language switcher .