Class lajax\translatemanager\controllers\LanguageController

Inheritancelajax\translatemanager\controllers\LanguageController » yii\web\Controller
Available since version1.0

Controller for managing multilinguality.

Property Details

$defaultAction public property
public $defaultAction 'list'
$module public property

TranslateManager module

Method Details

actions() public method

public void actions ( )
behaviors() public method

public void behaviors ( )
createLanguageSourceDataProvider() public method

Returns an ArrayDataProvider consisting of language elements.

public \yii\data\ArrayDataProvider createLanguageSourceDataProvider ( $languageSources )
$languageSources array
findModel() public method

Finds the Language model based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

public \lajax\translatemanager\controllers\Language findModel ( $id )
$id string
return \lajax\translatemanager\controllers\Language

The loaded model

throws \lajax\translatemanager\controllers\NotFoundHttpException

if the model cannot be found