You are here

protected function GridStackFormBase::gridStack in GridStack 8.2

Returns the gridstack instance.

4 calls to GridStackFormBase::gridStack()
GridStackForm::previewForm in modules/gridstack_ui/src/Form/GridStackForm.php
Sets up the preview form.
GridStackFormBase::initEngine in modules/gridstack_ui/src/Form/GridStackFormBase.php
Initializes the layout engine.
GridStackVariantForm::closeVariant in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Callback for cancelling a layout variant.
GridStackVariantForm::getApplicableBreakpoints in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Returns the applicable breakpoints.

File

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

Class

GridStackFormBase
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

protected function gridStack() {
  if (!isset($this->gridStack)) {
    $this->gridStack = $this->entity;
  }
  return $this->gridStack;
}