function FormWizardBase::getOperation

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

Retrieve the current Operation.

Parameters

mixed $cached_values: The values returned by $this->getTempstore()->get($this->getMachineName());.

Return value

string The class name to instantiate.

Overrides FormWizardInterface::getOperation

3 calls to FormWizardBase::getOperation()
EntityFormWizardBase::customizeForm in src/Wizard/EntityFormWizardBase.php
Helper function for generating label and id form elements.
FormWizardBase::buildForm in src/Wizard/FormWizardBase.php
Form constructor.
FormWizardBase::getFormId in src/Wizard/FormWizardBase.php
Returns a unique string identifying the form.

File

src/Wizard/FormWizardBase.php, line 171

Class

FormWizardBase
The base class for all form wizard.

Namespace

Drupal\ctools\Wizard

Code

public function getOperation($cached_values) {
  $operations = $this->getOperations($cached_values);
  $step = $this->getStep($cached_values);
  if (!empty($operations[$step])) {
    return $operations[$step];
  }
  throw new NotFoundHttpException();
}