function FormWizardBase::getStep

Same name in other branches
  1. 4.0.x src/Wizard/FormWizardBase.php \Drupal\ctools\Wizard\FormWizardBase::getStep()

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\Wizard

Code

public function getStep($cached_values) {
    if (!$this->step) {
        $operations = $this->getOperations($cached_values);
        $steps = array_keys($operations);
        $this->step = reset($steps);
    }
    return $this->step;
}