You are here

public function ContextReactionFormBase::submitForm in Context 8

Same name and namespace in other branches
  1. 8.4 src/Reaction/ContextReactionFormBase.php \Drupal\context\Reaction\ContextReactionFormBase::submitForm()
  2. 8.0 src/Reaction/ContextReactionFormBase.php \Drupal\context\Reaction\ContextReactionFormBase::submitForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

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

Overrides FormInterface::submitForm

File

src/Reaction/ContextReactionFormBase.php, line 64

Class

ContextReactionFormBase

Namespace

Drupal\context\Reaction

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->context
    ->save();
}