You are here

public function InsertComponentForm::submitForm in Layout Paragraphs 2.0.x

Saves the paragraph component.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

Overrides ComponentFormBase::submitForm

File

src/Form/InsertComponentForm.php, line 170

Class

InsertComponentForm
Class InsertComponentForm.

Namespace

Drupal\layout_paragraphs\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->insertComponent();
  $this->tempstore
    ->set($this->layoutParagraphsLayout);
}