You are here

public function SubmitButtonLabel::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/SubmitButtonLabel.php, line 51

Class

SubmitButtonLabel
FormEnhancer for altering the labels of submit buttons.

Namespace

Drupal\flexiform\Plugin\FormEnhancer

Code

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