You are here

public function BreakpointFormTrait::moreBreakpointsSubmit in Doubleclick for Publishers (DFP) 8

Submit handler to add more breakpoints to an ad tag.

File

src/Form/BreakpointFormTrait.php, line 80
Contains \Drupal\dfp\Form\BreakpointFormTrait.

Class

BreakpointFormTrait
Provides form for adding breakpoints to a DFP tag.

Namespace

Drupal\dfp\Form

Code

public function moreBreakpointsSubmit(array $form, FormStateInterface &$form_state) {
  $form_state
    ->setValue('breakpoints', $form_state
    ->getUserInput()['breakpoints']);
  $form_state
    ->setRebuild();
}