You are here

protected function TableDragTestForm::buildFormActions in Drupal 10

Same name and namespace in other branches
  1. 9 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'),
    ],
  ];
}