July 2017
Intermediate to advanced
456 pages
11h 32m
English
The language_select type provides a dropdown that allows the user to select a system language. The #languages attribute determines which set of system languages to use and can be the following:
Note that you need to have the Language module enabled for this form type to be displayed. Consider the following example:
$form['langcode'] = array( '#type' => 'language_select', '#title' => $this->t('Language'), '#languages' ...Read now
Unlock full access