You are here

public function AbjsConditionForm::deleteCondition in A/B Test JS 2.0.x

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

Delete item.

Parameters

array $form: The form.

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

File

src/Form/AbjsConditionForm.php, line 205

Class

AbjsConditionForm
Class for build form condition.

Namespace

Drupal\abjs\Form

Code

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