public function addOneExcludeLocationMap(array &$form, FormStateInterface $form_state) {
    $num_exclude_location_map = $form_state->get('num_exclude_location_map');
    $add_button = $num_exclude_location_map + 1;
    $form_state->set('num_exclude_location_map', $add_button);
    $form_state->setRebuild();
  }
public function addOneExcludeLocationMap(array &$form, FormStateInterface $form_state) {
    $num_exclude_location_map = $form_state->get('num_exclude_location_map');
    $add_button = $num_exclude_location_map + 1;
    $form_state->set('num_exclude_location_map', $add_button);
    $form_state->setRebuild();
  }
public function addOneExcludeLocationMap ( array & $ form , FormStateInterface $ form_state ) { $ num_exclude_location_map = $ form_state -> get ( 'num_exclude_location_map' ) ; $ add_button = $ num_exclude_location_map + 1 ; $ form_state -> set ( 'num_exclude_location_map' , $ add_button ) ; $ form_state -> setRebuild ( ) ; }
Submit handler for the "add-one-more" button for exclude_location_map.

Increments the max counter and causes a rebuild.

@param array $form
Form array.
@param \Drupal\Core\Form\FormStateInterface $form_state
Form state.
Submit handler for the add - one - more button for exclude_location_map .