function TableDragTestForm::buildForm

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php \Drupal\tabledrag_test\Form\TableDragTestForm::buildForm()
  2. 10 core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php \Drupal\tabledrag_test\Form\TableDragTestForm::buildForm()
  3. 8.9.x core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php \Drupal\tabledrag_test\Form\TableDragTestForm::buildForm()

File

core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php, line 172

Class

TableDragTestForm
Provides a form for draggable table testing.

Namespace

Drupal\tabledrag_test\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  // Provide a default set of five rows.
  $form['table'] = $this->buildTestTable();
  $form['actions'] = $this->buildFormActions();
  return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.