You are here

public function LanguageListBuilder::buildForm in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildForm()
  2. 10 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides DraggableListBuilder::buildForm

File

core/modules/language/src/LanguageListBuilder.php, line 135

Class

LanguageListBuilder
Defines a class to build a listing of language entities.

Namespace

Drupal\language

Code

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;
}