You are here

protected function TranslateBlockForm::successfulAjaxSubmit in Layout Builder Symmetric Translations 8

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/TranslateBlockForm.php, line 210

Class

TranslateBlockForm
Provides a form to translate a block plugin in the Layout Builder.

Namespace

Drupal\layout_builder_st\Form

Code

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