You are here

public function GridStackVariantForm::saveVariant in GridStack 8.2

Callback for saving a layout variant draft.

File

modules/gridstack_ui/src/Form/GridStackVariantForm.php, line 403

Class

GridStackVariantForm
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

public function saveVariant(array &$form, FormStateInterface &$form_state) {
  $this
    ->validateForm($form, $form_state);
  $this
    ->save($form, $form_state);
  return $form;
}