function EntityWizard::getOperations

Overrides FormWizardInterface::getOperations

File

tests/modules/ctools_wizard_test/src/Wizard/EntityWizard.php, line 30

Class

EntityWizard

Namespace

Drupal\ctools_wizard_test\Wizard

Code

public function getOperations($cached_values) {
    return [
        'one' => [
            'form' => 'Drupal\\ctools_wizard_test\\Form\\OneForm',
            'title' => $this->t('Form One'),
            'values' => [
                'dynamic' => 'Xylophone',
            ],
            'validate' => [
                '::stepOneValidate',
            ],
            'submit' => [
                '::stepOneSubmit',
            ],
        ],
        'two' => [
            'form' => 'Drupal\\ctools_wizard_test\\Form\\TwoForm',
            'title' => $this->t('Form Two'),
            'values' => [
                'dynamic' => 'Zebra',
            ],
        ],
    ];
}