public function DeleteComponentForm::submitForm in Layout Paragraphs 2.0.x
Deletes the component and saves the layout.
Overrides FormInterface::submitForm
File
- src/
Form/ DeleteComponentForm.php, line 98
Class
- DeleteComponentForm
- Class DeleteComponentForm.
Namespace
Drupal\layout_paragraphs\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->layoutParagraphsLayout
->deleteComponent($this->componentUuid, TRUE);
$this->tempstore
->set($this->layoutParagraphsLayout);
}