You are here

public function CopyRemoteFlow::selectFlow in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::selectFlow()
  2. 2.0.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::selectFlow()

Rebuild form for next step.

Parameters

array $form:

File

src/Form/CopyRemoteFlow.php, line 110

Class

CopyRemoteFlow
Form handler for the Pool add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

public function selectFlow($form, FormStateInterface $form_state) {
  $trigger = $form_state
    ->getTriggeringElement();
  $flow_id = $trigger['#flow_id'];
  $form_state
    ->setValue('flow', $flow_id);
  $form_state
    ->setRebuild();
}