function TableDragTestForm::buildFormActions

Same name in other branches
  1. 9 core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php \Drupal\tabledrag_test\Form\TableDragTestForm::buildFormActions()
  2. 10 core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php \Drupal\tabledrag_test\Form\TableDragTestForm::buildFormActions()

Builds the test table form actions.

Return value

array The renderable array of form actions.

2 calls to TableDragTestForm::buildFormActions()
NestedTableDragTestForm::buildForm in core/modules/system/tests/modules/tabledrag_test/src/Form/NestedTableDragTestForm.php
Form constructor.
TableDragTestForm::buildForm in core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php
Form constructor.

File

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

Class

TableDragTestForm
Provides a form for draggable table testing.

Namespace

Drupal\tabledrag_test\Form

Code

protected function buildFormActions() {
    return [
        '#type' => 'actions',
        'save' => [
            '#type' => 'submit',
            '#value' => $this->t('Save'),
        ],
        'reset' => [
            '#type' => 'submit',
            '#op' => 'reset',
            '#value' => $this->t('Reset'),
        ],
    ];
}

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