You are here

public function GridStackForm::form in GridStack 8.2

Same name and namespace in other branches
  1. 8 modules/gridstack_ui/src/Form/GridStackForm.php \Drupal\gridstack_ui\Form\GridStackForm::form()

Gets the actual form array to be built.

Overrides GridStackFormBase::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

1 call to GridStackForm::form()
GridStackVariantForm::form in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Gets the actual form array to be built.
1 method overrides GridStackForm::form()
GridStackVariantForm::form in modules/gridstack_ui/src/Form/GridStackVariantForm.php
Gets the actual form array to be built.

File

modules/gridstack_ui/src/Form/GridStackForm.php, line 17

Class

GridStackForm
Extends base form for gridstack instance configuration form.

Namespace

Drupal\gridstack_ui\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  $this
    ->optionsForm($form, $form_state);
  $this
    ->settingsForm($form, $form_state);
  $this
    ->previewForm($form, $form_state);
  if (!$this->useNested) {
    $this
      ->massageSettings($form);
  }
  return $form;
}