You are here

protected function RevisionOverviewForm::buildSelectColumn in Diff 8

Set column attributes and return config array.

Parameters

string $name: Name attribute.

string $return_val: Return value attribute.

string $default_val: Default value attribute.

Return value

array Configuration array.

1 call to RevisionOverviewForm::buildSelectColumn()
RevisionOverviewForm::buildForm in src/Form/RevisionOverviewForm.php
Form constructor.

File

src/Form/RevisionOverviewForm.php, line 325

Class

RevisionOverviewForm
Provides a form for revision overview page.

Namespace

Drupal\diff\Form

Code

protected function buildSelectColumn($name, $return_val, $default_val) {
  return [
    '#type' => 'radio',
    '#title_display' => 'invisible',
    '#name' => $name,
    '#return_value' => $return_val,
    '#default_value' => $default_val,
  ];
}