You are here

protected function CopyRemoteFlow::getLastFormStep 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::getLastFormStep()
  2. 2.0.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getLastFormStep()

Return the current step of our multi-step form.

Return value

string

1 call to CopyRemoteFlow::getLastFormStep()
CopyRemoteFlow::validateForm in src/Form/CopyRemoteFlow.php
Validate format of input fields and make sure the Sync Core backend is accessible to actually update it.

File

src/Form/CopyRemoteFlow.php, line 889

Class

CopyRemoteFlow
Form handler for the Pool add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

protected function getLastFormStep(FormStateInterface $form_state) {
  $step = $form_state
    ->getValue('step');
  if (empty($step)) {
    return self::STEP_SYNC_CORE;
  }
  return $step;
}