You are here

public function TargetingFormTrait::targetingFormMoreTargetsSubmit in Doubleclick for Publishers (DFP) 8

Submit handler to add more targets to an ad tag.

File

src/Form/TargetingFormTrait.php, line 85
Contains \Drupal\dfp\Form\TargetingFormTrait.

Class

TargetingFormTrait
Adds a form for saving DFP targeting information.

Namespace

Drupal\dfp\Form

Code

public function targetingFormMoreTargetsSubmit(array $form, FormStateInterface &$form_state) {
  $form_state
    ->set('targeting', $form_state
    ->getUserInput()['targeting']);
  $form_state
    ->setRebuild();
}