public function DeleteComponentForm::closeForm in Layout Paragraphs 2.0.x
Ajax callback - closes the form.
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
File
- src/
Form/ DeleteComponentForm.php, line 130
Class
- DeleteComponentForm
- Class DeleteComponentForm.
Namespace
Drupal\layout_paragraphs\FormCode
public function closeForm(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$response
->addCommand($this
->closeDialogCommand($this->layoutParagraphsLayout));
return $response;
}