public function AbjsTestForm::abjsAjaxAddCondition in A/B Test JS 8
Same name and namespace in other branches
- 2.0.x src/Form/AbjsTestForm.php \Drupal\abjs\Form\AbjsTestForm::abjsAjaxAddCondition()
Adds condition select fields to AbjsTestForm.
File
- src/
Form/ AbjsTestForm.php, line 329
Class
- AbjsTestForm
- Class for build form test.
Namespace
Drupal\abjs\FormCode
public function abjsAjaxAddCondition(array $form, FormStateInterface $form_state) {
$form_state
->set('num_conditions', $form_state
->get('num_conditions') + 1);
$form_state
->setRebuild();
}