You are here

public function GridStackVariantForm::save in GridStack 8.2

Overrides Drupal\Core\Entity\EntityFormController::save().

Overrides GridStackFormBase::save

2 calls to GridStackVariantForm::save()
GridStackVariantForm::duplicateVariant in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Callback for duplicating a layout variant.
GridStackVariantForm::saveVariant in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Callback for saving a layout variant draft.

File

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

Class

GridStackVariantForm
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

public function save(array $form, FormStateInterface $form_state) {
  $this->entity
    ->set('source', $this->entity
    ->source());
  parent::save($form, $form_state);
}