You are here

protected function GridStackFormBase::getNestedSettings in GridStack 8.2

Returns the CSS settings.

3 calls to GridStackFormBase::getNestedSettings()
GridStackForm::previewForm in modules/gridstack_ui/src/Form/GridStackForm.php
Sets up the preview form.
GridStackFormBase::form in modules/gridstack_ui/src/Form/GridStackFormBase.php
Gets the actual form array to be built.
GridStackFormBase::initEngine in modules/gridstack_ui/src/Form/GridStackFormBase.php
Initializes the layout engine.

File

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

Class

GridStackFormBase
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

protected function getNestedSettings() {
  if (!isset($this->nestedSettings)) {
    $settings = $this->default
      ->getOptions('settings');
    $framework['minWidth'] = 1;
    $framework['verticalMargin'] = 20;
    $framework['column'] = 12;
    $framework['disableOneColumnMode'] = TRUE;
    $this->nestedSettings = array_merge($settings, $framework);
  }
  return $this->nestedSettings;
}