function FormWizardBase::getStep
Retrieve the current active step of the wizard.
This will return the first step of the wizard if no step has been set.
Parameters
mixed $cached_values: The values returned by $this->getTempstore()->get($this->getMachineName());.
Return value
string
Overrides FormWizardInterface::getStep
4 calls to FormWizardBase::getStep()
- FormWizardBase::actions in src/
Wizard/ FormWizardBase.php - Generates action elements for navigating between the operation steps.
- FormWizardBase::getNextParameters in src/
Wizard/ FormWizardBase.php - The Route parameters for a 'next' step.
- FormWizardBase::getOperation in src/
Wizard/ FormWizardBase.php - Retrieve the current Operation.
- FormWizardBase::getPreviousParameters in src/
Wizard/ FormWizardBase.php - The Route parameters for a 'previous' step.
File
-
src/
Wizard/ FormWizardBase.php, line 159
Class
- FormWizardBase
- The base class for all form wizard.
Namespace
Drupal\ctools\WizardCode
public function getStep($cached_values) {
if (!$this->step) {
$operations = $this->getOperations($cached_values);
$steps = array_keys($operations);
$this->step = reset($steps);
}
return $this->step;
}