protected function DeleteStyles::successfulAjaxSubmit in Block Style Plugins 8.2
Allows the form to respond to a successful AJAX submission.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
\Drupal\Core\Ajax\AjaxResponse An AJAX response.
Overrides AjaxFormHelperTrait::successfulAjaxSubmit
File
- src/
Form/ DeleteStyles.php, line 148
Class
- DeleteStyles
- Provides a form to delete a block style.
Namespace
Drupal\block_style_plugins\FormCode
protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) {
return $this
->rebuildAndClose($this->sectionStorage);
}