You are here

protected function ConfigureStyles::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/ConfigureStyles.php, line 209

Class

ConfigureStyles
Provides a form to configure styles.

Namespace

Drupal\block_style_plugins\Form

Code

protected function successfulAjaxSubmit(array $form, FormStateInterface $form_state) {
  return $this
    ->rebuildAndClose($this->sectionStorage);
}