You are here

public function ComponentFormBase::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 FormInterface::submitForm

2 calls to ComponentFormBase::submitForm()
EditComponentForm::submitForm in src/Form/EditComponentForm.php
Saves the paragraph component.
InsertComponentForm::submitForm in src/Form/InsertComponentForm.php
Saves the paragraph component.
2 methods override ComponentFormBase::submitForm()
EditComponentForm::submitForm in src/Form/EditComponentForm.php
Saves the paragraph component.
InsertComponentForm::submitForm in src/Form/InsertComponentForm.php
Saves the paragraph component.

File

src/Form/ComponentFormBase.php, line 270

Class

ComponentFormBase
Class LayoutParagraphsComponentFormBase.

Namespace

Drupal\layout_paragraphs\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->paragraph = $this
    ->buildParagraphComponent($form, $form_state);
}