function FormWizardBase::initValues

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

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 127

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();
}