You are here

public function SubmitButtonAjax::configurationFormSubmit in Flexiform 8

The configuration form submit callback.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

Overrides ConfigurableFormEnhancerBase::configurationFormSubmit

File

src/Plugin/FormEnhancer/SubmitButtonAjax.php, line 94

Class

SubmitButtonAjax
FormEnhancer for altering the ajax settings of submit buttons.

Namespace

Drupal\flexiform\Plugin\FormEnhancer

Code

public function configurationFormSubmit(array $form, FormStateInterface $form_state) {
  $this->configuration = $form_state
    ->getValue(array_merge($form['#parents'], [
    'ajax',
  ]));
}