You are here

protected function GridStackFormBase::getColumnOptions in GridStack 8.2

Returns the supported columns.

2 calls to GridStackFormBase::getColumnOptions()
GridStackForm::previewForm in modules/gridstack_ui/src/Form/GridStackForm.php
Sets up the preview form.
GridStackForm::settingsForm in modules/gridstack_ui/src/Form/GridStackForm.php
Sets up the settings form.

File

modules/gridstack_ui/src/Form/GridStackFormBase.php, line 618

Class

GridStackFormBase
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

protected function getColumnOptions() {
  $range = range(1, 12);
  return array_combine($range, $range);
}