function FormWizardBase::initValues

Initialize wizard values.

Return mixed.

Overrides FormWizardInterface::initValues

2 calls to FormWizardBase::initValues()
FormWizardBase::getFormId in src/Wizard/FormWizardBase.php
Returns a unique string identifying the form.
FormWizardBase::populateCachedValues in src/Wizard/FormWizardBase.php
Form validation handler that populates the cached values from tempstore.
1 method overrides FormWizardBase::initValues()
EntityFormWizardBase::initValues in src/Wizard/EntityFormWizardBase.php
Initialize wizard values.

File

src/Wizard/FormWizardBase.php, line 128

Class

FormWizardBase
The base class for all form wizard.

Namespace

Drupal\ctools\Wizard

Code

public function initValues() {
  $values = [];
  $event = new WizardEvent($this, $values);
  $this->dispatcher
    ->dispatch($event, FormWizardInterface::LOAD_VALUES);
  return $event->getValues();
}