protected function PoolForm::getLastFormStep in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Form/PoolForm.php \Drupal\cms_content_sync\Form\PoolForm::getLastFormStep()
- 2.1.x src/Form/PoolForm.php \Drupal\cms_content_sync\Form\PoolForm::getLastFormStep()
Return the current step of our multi-step form.
Return value
string
1 call to PoolForm::getLastFormStep()
- PoolForm::validateForm in src/
Form/ PoolForm.php - Validate format of input fields and make sure the Sync Core backend is accessible to actually update it.
File
- src/
Form/ PoolForm.php, line 607
Class
- PoolForm
- Form handler for the Pool add and edit forms.
Namespace
Drupal\cms_content_sync\FormCode
protected function getLastFormStep(FormStateInterface $form_state) {
$step = $form_state
->getValue('step');
if (empty($step)) {
return self::STEP_SYNC_CORE;
}
return $step;
}