You are here

protected function TableDragTestForm::buildFormActions in Drupal 9

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'),
    ],
  ];
}