You are here

public function FormWizardBase::initValues in Chaos Tool Suite (ctools) 8.3

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 117

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(FormWizardInterface::LOAD_VALUES, $event);
  return $event
    ->getValues();
}