You are here

public function AbjsTestForm::deleteTest in A/B Test JS 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/AbjsTestForm.php \Drupal\abjs\Form\AbjsTestForm::deleteTest()

Delete item.

Parameters

array $form: The form.

\Drupal\Core\Form\FormStateInterface $form_state: The state of forms.

File

src/Form/AbjsTestForm.php, line 490

Class

AbjsTestForm
Class for build form test.

Namespace

Drupal\abjs\Form

Code

public function deleteTest(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('abjs.test_delete_confirm_form', [
    'tid' => $form_state
      ->getValue('tid'),
  ]);
}