function LanguageListBuilder::buildForm
Same name in other branches
- 9 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildForm()
- 8.9.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildForm()
- 11.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildForm()
Overrides DraggableListBuilderTrait::buildForm
File
-
core/
modules/ language/ src/ LanguageListBuilder.php, line 135
Class
- LanguageListBuilder
- Defines a class to build a listing of language entities.
Namespace
Drupal\languageCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form[$this->entitiesKey]['#languages'] = $this->entities;
$form['actions']['submit']['#value'] = t('Save configuration');
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.