You are here

public function RiddlerSettingsForm::removeSubmit in Captcha Riddler 8

Submit function for remove a riddle button.

Parameters

$form:

\Drupal\Core\Form\FormStateInterface $form_state:

File

src/Form/RiddlerSettingsForm.php, line 164

Class

RiddlerSettingsForm
Displays the Riddler settings form.

Namespace

Drupal\riddler\Form

Code

public function removeSubmit(&$form, FormStateInterface &$form_state) {
  $this
    ->removeFormStateValue($form_state);
  $form_state
    ->setRebuild(TRUE);
}