You are here

public function ElevateZoomPlusForm::addRespond in ElevateZoom Plus 8

Handles adding the responds.

File

modules/ui/src/Form/ElevateZoomPlusForm.php, line 310

Class

ElevateZoomPlusForm
Extends base form for elevatezoomplus instance configuration form.

Namespace

Drupal\elevatezoomplus_ui\Form

Code

public function addRespond(array &$form, FormStateInterface &$form_state) {
  $num = $form_state
    ->get('num_responds') + 1;
  $form_state
    ->set('num_responds', $num);
  $form_state
    ->setRebuild(TRUE);
}